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.

react-redux 5.0.3 breaks hot-reloading

See original GitHub issue

Description

After updating from react-redux 5.0.2 to 5.0.3 hot reloading breaks the redux state.

Expected behavior

hot reloading should not break the redux state.

Actual behavior

with react-redux 5.0.3 the redux state breaks after a hot reload has happened.

Environment

react-hot-loader 3.0.0-beta.6

Reproducible Demo

Any project with react-hot-loader will do, just upgrade react-redux to 5.0.3 and experience the issue.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:15
  • Comments:21 (4 by maintainers)

github_iconTop GitHub Comments

7reactions
pmwisdomcommented, Apr 5, 2017

I’m also having the same problem, with both 5.0.2 and 5.0.3.

Edit: Going back to 4.4.6 fixed this for me.

0reactions
larsnystromcommented, Feb 25, 2018

I had to update to react-hot-loader@4.0.0-rc.0 (yarn add react-hot-loader@next) to make hot reloading components work with react-redux@5.0.6.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Hot Reload is not working in my React App - Stack Overflow
To solve the problem in hot reloading/fast_refresh I simply add CHOKIDAR_USEPOLLING=true in package.json:
Read more >
Hot Module Replacement in Redux - Toptal
Hot reloading can be accomplished by following the instructions found on that github: https://github.com/gaearon/react-hot-loader. Shaojiang Cai. Thanks. Yes, ...
Read more >
react-redux: Versions - Openbase
Full version history for react-redux including change logs. ... Persist child listeners through hot reload (#715 by @dsgkirkby) ... 5.0.3. 6 years ago....
Read more >
Fearless startup of a React-Redux project - Altereos
Hot reloading ; Test suites; Packages specific to a project. Looks much clearer than a bloated package.json, right? It's the first step. Now ......
Read more >
uncaught typeerror: cannot read properties of undefined (reading ...
My react app is using cognito, as soon as i add react-redux provider globally for storybook, and run yarn storybook it keeps loading...
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