Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Persist state every time form input changes
`react-localstorage` listens for the `beforeunload` event and saves `state` at that point: https://github.com/josephfrazier/react-localstorage/blob/830829c25cb13ea83d4d3dfc23ef3dbc200c438a/react-localstorage.js#L60 However, `beforeunload` seems not to fire when the PWA is swiped away: https://stackoverflow.com/questions/49504561/app-swipe-away-handler-in-pwa So, we have to save state manually as well. Now that we're not keeping images/videos, this seems fast enough. Fixes #6 See STRML/react-localstorage#17
- Loading branch information