You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 9, 2020. It is now read-only.
@gaearon i was a big confused by the deprecation notice... i've been personally using this to instrument my React components to send over to a logging service. Still, nothing to do with hot module reloading... am I missing the idea here?
The deprecation has nothing to do with hot reloading per se. (I’m just saying that the most common use case for it, hot reloading, is solved by React Hot Loader 3.)
The reason the project is deprecated is it’s impossible to reliably detect React components at the compile time. It wasn’t so bad during React 0.13, but functional components in React 0.14 are notoriously hard to detect (#57), and it’s not going to get easier over time. Any function may turn out to be a React component now. Additionally, components that are generated (e.g. with higher order components) were not being detected at all.
For instrumenting React components, you will be able to use the official React devtool API that is soon going to be exposed. It’s unstable but it’s better than nothing. (facebook/react#6549, facebook/react#5306)
FYI, I published a post today:
https://medium.com/@dan_abramov/hot-reloading-in-react-1140438583bf
The text was updated successfully, but these errors were encountered: