-
Notifications
You must be signed in to change notification settings - Fork 50
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
Bind ES6 class methods in constructor #69
Comments
I've wasted +4 hours tracing this bug. :-( |
It's still impossible to use HMR with es6 components without moving part of constructor to componentWillMount which is unwanted |
This is even more important now that the class properties proposal has made it to stage 3, as this is how they're transpiled. As a reminder, in the React docs it says this:
so this is very much intended usage. |
Seems like binding class methods in ES6 class constructor doesn't work with react-transform-hmr (which uses react-proxy)
Binding in componentWillMount works:
The text was updated successfully, but these errors were encountered: