The following causes code to be lost, so I’m hoping you might be able to improve this behavior so your code remains after turning Hopscotch back on.
- Open a published project
- Start modifying the code (I do this very frequently in an attempt to reuse code since Hopscotch code is completely sandboxed)
- Get distracted/interrupted (this also happens frequently)
- Wait for some period more than a few minutes & after the device turns off (sleeps)
- Go back to Hopscotch
- The app will restart
- Your code will be lost
Just to note: This only occurs if you haven’t formally exited the modified project (where it’s asks if you want to remix, save to profile, or exit).
So the obvious work around is to exit a modified project and save as a draft. Then, even if Hopscotch restarts while you’re working on the project, the progress won’t be lost. But the point here is in getting interrupted before remembering to do so. I’ve lost at least 3 projects recently due to this, and it would be really awesome if Hopscotch would temporarily save modified projects when the app restarts itself, and then return to that project after it restarts.