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

Passing in a string array as paths returns error #20

Closed anthonator closed 8 years ago

anthonator commented 8 years ago

I'm getting this error when I try to initialize persistState.

Uncaught TypeError: finalStorage.get is not a function

If I pass in a string or void I don't get any issues.

const store = compose(
  middleware,
  persistState(['jwt']),
  reduxReactRouter({ getRoutes, createHistory })
)(createStore)(reducers);
vicentedealencar commented 8 years ago

What version of redux-localstorage are you using?

Check out branch 1.0-breaking-changes

anthonator commented 8 years ago

1.0.0-rc4

elgerlambert commented 8 years ago

Hi @anthonator, the Readme on master shows the docs associated with 0.4.0. Be sure to check out the Readme associated with the 1.0-breaking-changes branch, since you're using 1.0.0-rc4.

anthonator commented 8 years ago

Got it. Thanks!