question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Using lodash-webpack-plugin breaks redux-persist functionality

See original GitHub issue

Using 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:closed
  • Created 7 years ago
  • Comments:10 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
marvinhagemeistercommented, Nov 4, 2016

My vote goes for a) too. The more we can use native JavaScript functions, the better.

1reaction
rt2zzcommented, Nov 1, 2016

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

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found