-
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
_this is not defined #1020
Comments
This is function actually a function of your component, or it should not be reloaded at all? |
I do not think I'm doing anything wrong react-wise. How can this be fixed? |
should be fixed in v4.3.3 |
I can confirm that it's been fixed with v4.3.3. |
👍 |
I got the same issue. have updated the react-hot-loader to 4.12.12. Working for me. |
If you are reporting a bug or having an issue setting up React Hot Loader, please fill in below. For feature requests, feel free to remove this template entirely.
Description
An error occurs when I change a component and the hot reloading refreshes the code. The reference to the
this
gets lost.When I refresh the page, the method works.
I then go and change a component, and try the same method, it loses the
this
reference and it breaks.Expected behavior
The error should not occur.
Actual behavior
Environment
React Hot Loader version: 4.2.0 and also 4.3.1
Run these commands in the project folder and fill in their results:
node -v
: 8.10.0npm -v
: 6.0.1Then, specify:
I've noticed this being a standard issue, but in other, resolved issues the problem was with the versions of the
this
, like_this1...10
etc.The text was updated successfully, but these errors were encountered: