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

In persistStateMiddleware, return result action instead of input action #34

Closed ckknight closed 8 years ago

ckknight commented 8 years ago

In order to make dispatch return the expected action, the persistStateMiddleware needs to return the result of next(action) rather than action itself.

elgerlambert commented 8 years ago

Merged, thanks!