supasate / connected-react-router

A Redux binding for React Router v4
MIT License
4.73k stars 593 forks source link

App freezes after HMR update #412

Open mihaibogdan opened 4 years ago

mihaibogdan commented 4 years ago

Hi guys,

I'm experiencing something very weird. If a change something in a reducer file, save it, and the HMR updates the content, then the app freezes. I am able to go through my menu links, the url is changing, but the content itself doesn't change. This is happening only when I change something in files related to redux, I guess the store gets a reset and something brakes.

I am posting this issue here because if I change <ConnectedRouter> to <BrowserRouter> the problem disappears. Did anyone encounter this problem?

Thanks!

sneridagh commented 4 years ago

It happens to me on every HMR update. Fixed if you reload the entire app.