elgerlambert / redux-localstorage

Store enhancer that syncs (a subset) of your Redux store state to localstorage.
MIT License
1.32k stars 107 forks source link

Ability to persist to local storage while the app is running (setInterval...) #92

Open lduros opened 6 years ago

lduros commented 6 years ago

I'm using redux-localstorage in Electron, and in the case the app crashes or someone uses Ctrl-C from the app started from the terminal, the latest changes to redux during the session will not be persisted.

What I would like to do is make sure it gets persisted from time to time, I'm not sure whether this is possible, it might be a more global issue with LocalStorage and how the application/browser exits, but I thought I'd ask if anyone has figured out a proper way of doing this.

Thanks