Using lodash-webpack-plugin breaks redux-persist functionality
See original GitHub issueUsing lodash-webpack-plugin to minimize build affects react-persist functionality.
Adding
new LodashModuleReplacementPlugin
to webpack plugins, causes redux-persist stopping write it’s data to localStorage.
Issue Analytics
- State:
- Created 7 years ago
- Comments:10 (5 by maintainers)
Top Results From Across the Web
rt2zz/redux-persist: persist and rehydrate a redux store - GitHub
Web: no breaking changes React Native: Users must now explicitly pass their storage engine in. e.g.. import AsyncStorage from '@react-native-async-storage/async ...
Read more >The Definitive Guide to Redux Persist - React Native Coach
Persist your Redux state in between app launches with Redux Persist ... Once your store is created, pass it to the persistStore function,...
Read more >Persist state with Redux Persist using Redux Toolkit in React
In this article, we'll learn how to use Redux Persist with Redux Toolkit ... which is the function that persists and rehydrates the...
Read more >How To Use Redux Persist in React Native with Asyncstorage
The Redux Persist library provides an easy way to save a Redux store in the local storage of React Native apps. In this...
Read more >Next.JS SSG broken with Redux Persist - Stack Overflow
I am trying to get SSG working along with Redux Persist but sadly <div id="__next"></div> is always empty even when I use Redux...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

My vote goes for
a)too. The more we can use native JavaScript functions, the better.wow this was a weird bug, the lodash import was being convered to an array iterator and would not work on the collection (read: object) we have for state.
As a work around I converted code from lodash forEach to es6 keys -> foreach, working now in 4.0.0-alpha7