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 hot load doesnt work

See original GitHub issue

Using react hotloader

import {hot} from 'react-hot-loader'
export default hot(module)(App)

Does not work, is there a way to get it to work without having the state reset every time a hotoad happens?

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:22 (13 by maintainers)

github_iconTop GitHub Comments

1reaction
dai-shicommented, May 24, 2019
1reaction
vans163commented, May 24, 2019

This fixes it if I do exactly as your example. And put render inoto index.js not App.js, which is the correct way to do it anyways. yes can merge

Read more comments on GitHub >

github_iconTop Results From Across the Web

Hot Reload is not working in my React App - Stack Overflow
Hot Reload is not working in my React App · This does happen sometimes. Do npm install and try adding some code. ·...
Read more >
Hot Reload stopped working with React "^17.0.1" · Issue #9904
Describe the bug Hot reloading when the redux-state change stopped working when I use CRA to get the last React version.
Read more >
Hot Reload not working in React 17.0.3 - Code with Mosh Forum
Hi, I have recently created a new project with create-react-app. Also, I am following Mosh's Mastering React course and according to it, ...
Read more >
react-hot-loader - npm
Start using react-hot-loader in your project by running `npm i react-hot-loader`. ... Install. npm i react-hot-loader ...
Read more >
Getting Started · React Hot Loader - Dan gaearon
If hot reloading doesnʼt work, itʼs usually due to a deviation from the configuration described above. Make sure to compare your setup to...
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