We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
What you are reporting:
What you think should happen:
handleClose should be called with the current context of the component.
handleClose
What actually happens:
handleClose is called with the old context of the container.
React Hot Loader version:
^3.0.0-beta.6
Run these commands in the project folder and fill in their results:
node -v
npm -v
Then, specify:
git clone git@github.com:gajus/sanity-test.git cd ./sanity-test npm run install npm run dev
Click "Click me" button.
Expected result: movie prop is not null. Curent result movie prop is null.
movie
The lack of context binding is visible in the code transpilation difference without/ with react-hot-loader/babel https://gist.github.com/gajus/2d0867f326d5c69702f057c7cd7cf15f/revisions
The text was updated successfully, but these errors were encountered:
The real issue is documented here. gaearon/react-proxy#69
Sorry, something went wrong.
myFunc = () => {}
I have tested it with React Hot Loader v4 and it is now fixed.
Successfully merging a pull request may close this issue.
Description
What you are reporting:
Expected behavior
What you think should happen:
handleClose
should be called with the current context of the component.Actual behavior
What actually happens:
handleClose
is called with the old context of the container.Environment
React Hot Loader version:
^3.0.0-beta.6
Run these commands in the project folder and fill in their results:
node -v
: v7.9.0npm -v
: v4.2.0Then, specify:
Reproducible Demo
git clone git@github.com:gajus/sanity-test.git cd ./sanity-test npm run install npm run dev
Click "Click me" button.
Expected result:
movie
prop is not null.Curent result
movie
prop is null.Additional information
The lack of context binding is visible in the code transpilation difference without/ with react-hot-loader/babel https://gist.github.com/gajus/2d0867f326d5c69702f057c7cd7cf15f/revisions
The text was updated successfully, but these errors were encountered: