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

Why does this middleware not use applyMiddleware? #86

Open toddw opened 6 years ago

toddw commented 6 years ago

What is the reason why installing redux-localstorage doesn't use redux.applyMiddleware?

camdagr8 commented 6 years ago

I was thinking the EXACT same thing. Also, having a hard time getting it to work with AsyncStorage (RN).

jkomusin commented 6 years ago

https://github.com/elgerlambert/redux-localstorage/blob/1.0-breaking-changes/src/persistState.js#L40

You might not be looking at 1.0, try installing redux-localstorage@rc or pinning to ^1.0.0-rc5