Hello :)
It would be nice if we could get rid of this message in the console too:
React-Hot-Loader: react-馃敟-dom patch detected. You may use all the features.
It's possible to silence all other console logs, but not this one :/
What do you think?
Probably it's better to display a message like this when hot patch is __not__ detected, as long as we rely on it.
how to fix it then?
The current version would display this message only if hot-patch is hot present.
React-Hot-Loader: react-馃敟-dom patch is not detected. React 16.6+ features may not work
Cos, you know, 16.6+ features really __might not work__, especially hooks. React-Hot-Loader is not very _reliable_ thing and might ruin all DX with _eeeeaaaasssyyyy_ 馃槶. We need some _support_ from React side but have to inject it by ourselves.
https://github.com/gaearon/react-hot-loader/commit/38b63cd
This commit said it's supporting 16.8.4, why do we still say it doesn't support 16.6+?
Are there any known issues with 16.6+?
@mohsinulhaq - you just linked a common in webpack loader, which __is__ a "react-馃敟-dom patch".
There are a few things RHL cannot do from a "user-space" _properly_. For example, hooks are breaking some internal stuff, and we are injecting additional API into react-dom to actually make them work _without surprices_.
So - long story short - all the tests are passing __with__ and __without__ hot patch. Everything is about reducing _WTF per minute_. RHL is a hacky tool by nature - we are hacking things.
Ok understood, so what do you think would be a proper solution? Does something need to change in react-dom officially?
https://github.com/reactjs/rfcs/pull/74 - but it's a bit stale.
Most helpful comment
https://github.com/reactjs/rfcs/pull/74 - but it's a bit stale.