yes, hmr sometimes doesn't work
Closed this issue · 4 comments
not sure why, but sometimes it doesn't work, and sometimes it randomly does.
There's also a new warning thrown by HMR now a days for new version of react warning, we need to fix that as well:
react-hot-loader.development.js:2429 React-Hot-Loader: react-🔥-dom patch is not detected. React 16.6+ features may not work
Would be nice if you have reproducing steps :)
Sorry, didn't add steps, thought you were aware,
git clone git@github.com/crazyfactory/ts-react-boilerplate hmr
cd hmr
npm i
npm start
- start browser, go to http://localhost:8889
- open devtools, go to console,
expected behavior:
no warnings,
actual behavior:
This will only give you the warning, but for some reason this time HMR is working, I have another project that doesn't work, it's quite random, it's almost like: if ((Math.floor(Math.random() * 100)) % 5 === 0) dontWork();
I'm aware of the warning, but never encountered broken hmr..
We have hmr in 3 main sections
- component
- redux
- saga
Can you please check if all of them doesn't work when you encounter one?
I haven't seen it not working for quite a while, I'll open it later if I find it, but I don't see that likely, also it always worked on ubuntu, and the non working only happened sometimes, and only on windows, so I don't really care ¯_(ツ)_/¯ 🙂 but now it's working 100% of the time.