rt2zz / redux-persist

persist and rehydrate a redux store
MIT License
12.96k stars 866 forks source link

Silent errors in production #1264

Open matt-moses opened 3 years ago

matt-moses commented 3 years ago

https://github.com/rt2zz/redux-persist/blob/d7efde9115a0bd2d6a0309ac6fb1c018bf06dc30/src/getStoredState.js#L37

I believe this error should still get logged even in production settings. Is it possible to provide a callback to be invoke upon this error. Or pass an error object as a parameter to the callback consumers provide to persistStore? I'd really like to know when this process fails.