this post was submitted on 01 Jul 2023
7 points (100.0% liked)
Music
7305 readers
3 users here now
Discussion about all things music, music production, and the music industry. Your own music is also acceptable here.
This community's icon was made by Aaron Schneider, under the CC-BY-NC-SA 4.0 license.
founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
No no my fault seriously I have too many tabs opened and I clicked the wrong button on the wrong tab. I screwed up. I should know better when I type a long reply.
Ah, I thought it was because we crashed. Well, still sucks. I wish Lemmy saved posts and replies temporarily on browser.
Nah haha, it has been going down a bit but no biggie. I don't think saving unfinished posts would be too feasible because you'd need to log each key stroke (onkeydown) and then save it in a database. It's pretty unrealistic. Don't worry about it!
Well, the idea was that the client or browser saves it - Beehaw would not save it in a database. I think that should be fairly easy to do tbh.
There's a few ways you can store the data client side, but it still requires to log each key stroke and save it. If I closed the tab the data would have to sit until it expires, I clear it, or I visit the site again and your javascript code removed it. It's not difficult to do, but unless there's a good reason it's usually more effort than it's worth. I wouldn't complain, but if you try it on most sites out there... they won't remember your form data if you navigate away and then click to confirm that "you have unsaved data, but you're still navigating away" or whatever...