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

I would love to take advantage of this, but I need to be able to ignore certain actions. #37

Closed ericwooley closed 8 years ago

ericwooley commented 8 years ago

I am using redux router, and there is a change action on every input change, which chugs with this module.

would it be difficult to add a config for action types that should not trigger a change, a la redux-form/CHANGE

I don't have a ton of time, but if you think this would be an easy PR, I could probably look into doing it.

ericwooley commented 8 years ago

After looking more into how redux local storage works, I don't see it being possible to ignore actions.

@elgerlambert How would you feel about adding a debounce option?

BartWaardenburg commented 8 years ago

Sounds like this little plugin by @elgerlambert is exactly what you want: https://github.com/elgerlambert/redux-localstorage-debounce

ericwooley commented 8 years ago

@BartWaardenburg Wow, thats too easy.

Thanks!