{Persist}ence is Key: Using Redux-Persist to Store Your State in LocalStorage
Clark Sanford
2017

This was a very illustrative article, but I’d like to use sessionStorage to store a subset of the redux store, and react-persist is giving me a hard time configuring these.

If I understood correctly, this should be via de config options at the `persistStore`, like this:

persistStore(store, {
 whitelist: [‘locale’, ‘auth’],
 storage: sessionStorage
 });

but I can’t make it work .. it defaults to write all store into the localStorage

Show your support

Clapping shows how much you appreciated Quique Borredá Sánchez’s story.