-
Notifications
You must be signed in to change notification settings - Fork 801
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Perform full-reload #936
Comments
A fat-arrow-bound event handler usually could be reloaded, unless it was "attached" via addEventListener in componentDidMount, and, as long component will not "remount" handler will not update. RHL only not updating lifecycle events, everything else should be updated. |
@theKashey doesn't the function get magically bound in the For the record, I'm talking about a function like this:
In any case, the new event handler is not injected, and my code also does not do a full-reload. My setup, if it's relevant:
|
In your case it will not, as long after ts-loader we have pure ES5, while our babel plugins looking for ES6 features, like classes. Just swap them! Or change tsconfig to emit es6 (but not in prod). Check readme, I've updated this moment 3 weeks ago, or better dive into the original issue - #884 |
When changing some code that cannot be hot-reloaded (for example, a fat-arrow-bound event handler function), I was expecting react-hot-loader to perform a full-refresh of my page. I seem to recall a much older version of this lib behaving that way (but maybe I'm wrong).
Is this a configuration issue? A bug? A wont-fix? A feature request?
Thanks!
The text was updated successfully, but these errors were encountered: