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
Actually, the problem is another - the "real" arrow function does not work at all. They are updating the real component, not the used(proxy) one.
See: #662, #686
The possible solution is still in testing. Meanwhile, just don't use env plugin - transpile arrow functions back to es5.
Description
can not update state within function which is defined with class properties style.
Expected behavior
this.setState
should update the state.Actual behavior
this.setState
does work as expected.Environment
React Hot Loader version: 3.1.2
Run these commands in the project folder and fill in their results:
node -v
: v8.5.0npm -v
: 5.4.2Then, specify:
Reproducible Demo
demo
The text was updated successfully, but these errors were encountered: