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

Having trouble setting up store for redux-localstorage. #38

Closed jamesone closed 8 years ago

jamesone commented 8 years ago

I'm trying to have a seperate store for only my user object so I can store authentication keys & user information. But there is a lack of examples on here!

The examples on this repo seem to cater for apps that store all it's data locally? Is there a way I can only setup the redux-localstorage to work with a single reducer (user)?

Stack question that I posted below: http://stackoverflow.com/questions/36260196/having-trouble-setting-up-redux-localstorage-to-work-with-existing-store

vicentedealencar commented 8 years ago

I answered on SO, hope it helps

elgerlambert commented 8 years ago

Hi @jamesone,

Your question on SO and here seem to concern different issues.. did you manage to resolve them?

To answer your question above, if you only want to persist part of your store I invite you to have a look at redux-localstorage-filter which is a storage enhancer intended to help do just that.

elgerlambert commented 8 years ago

Closing this for now, but definitely let me know if you still need help!