-
-
Notifications
You must be signed in to change notification settings - Fork 348
mobx-react observer broken react-hot-loader #833
Comments
Can you help out a bit more? I never used hot loader and I don't know specifics how exactly it works and what is the expected outcome. Can you look at the observer code if you see something suspicious? We are hacking the mobx-react/src/observerClass.ts Line 19 in 9b2ffb1
Edit: Possibly related #500 |
Also can you please try it out with |
FWIW I personally never supported react-hot-loader, as it has too many issues, especially in combination and would be an unending support burden (just reasoning about what should be the correct behavior can already be very tricky in cases). My hopes of the new fast-refresh mechanism are slightly better a it seem to behave much more consistently with known supported and unsupported cases. |
@WearyMonkey @FredyC @mweststrate for me react-hot-loader provides significant boost in development |
I think we can close it here. Unless someone can come up with specifics, it doesn't seem to be worth the effort. In my opinion, hot reloading is overrated. There are much better tools for quick development, be it Storybook for designing components or actual tests when verifying logic. |
@mweststrate @FredyC Hi. I have the same issue. As a reference, I took the example proposed by @wangkechun. I've tested |
Can you perhaps try react-fast-refresh instead? It was introduced into React Native first where it seems to be working and now it should be available for React as well. Either way, please open a new issue if it doesn't turn out to be working either. |
demo: https://github.com/gaearon/react-hot-loader/pull/1418/files
pull this github mr and edit examples/typescript/src/Counter.tsx:32
react-hot-loader will not work
ref: gaearon/react-hot-loader#1419
The text was updated successfully, but these errors were encountered: