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

What is the recommended way to persist Immutable js state with the new API? #28

Closed kiranp11 closed 8 years ago

kiranp11 commented 8 years ago

Hello,

I'm using the "redux-localstorage": "^1.0.0-rc4". What is the recommended way to handle serialisation/deserialization of a Immutable js state with the new API?

Is there any thing similar to config, that gave an handle to achieve this in the older API?

Thanks in advance

Kiran.

jakelazaroff commented 8 years ago

I wrote an enhancer that allows you to do this! https://www.npmjs.com/package/redux-localstorage-immutable

Let me know how it works :grin:

elgerlambert commented 8 years ago

Hi @kiranp11,

A storage enhancer would definitely be the way to go about this. Looks like @jakelazaroff already took care of this! I also saw you already added it to the wiki, much appreciated! Thanks!