Open Plsr opened 7 years ago
Currently, I feel like the redux store should be persisted by default. If the user enters the page with the persisted store, the user should be asked if they want to continue with the persisted store or start over.
If the user has gotten to the summary and downloaded the PDF, the store should no longer be persisted. Not sure how this would work though, need to do some research.
When the page is reloaded, naturally the redux state gets deleted, which kind of breaks the app (for the most parts, the app will still technically work, but lots of information will be lost).
I feel like there should be at least a warning when reloading the page, and then the user should be redirected to a useful state of the app (i.e. the start). What would be even better would be to write the redux state to a cookie (or otherwise save it on the user), so that a reload wouldn't actually lead to any data loss.