-
Notifications
You must be signed in to change notification settings - Fork 24.4k
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
Bound class property functions don't hot reload #15363
Comments
Can this be related to #10991 (comment) ? |
Yes, @mfrachet I think it may be. Looks like it's likely because React Native is using Unfortunately @bvic23's solution - babel-plugin-functional-hmr doesn't appear to work for arrow functions defined in classes. |
Duplicate of #10991 |
I created this babel plugin babel-plugin-transform-class-bound-properties to solve hot loading issue with class bound properties. Works with babel 6.x |
Hey there, it looks like there has been no activity on this issue recently. Has the issue been fixed, or does it still require the community's attention? This issue may be closed if no further activity occurs. You may also label this issue as "For Discussion" or "Good first issue" and I will leave it open. Thank you for your contributions. |
Closing this issue after a prolonged period of inactivity. If this issue is still present in the latest release, please feel free to create a new issue with up-to-date information. |
Is this a bug report?
Yes.
Have you read the Bugs section of the How to Contribute guide?
Yes.
Environment
react-native run-ios
Steps to Reproduce
renderSomething
function.Expected Behavior
The component is hot-reloaded and the render is updated.
When using the manual bind in constructor syntax, hot reloading works.
Actual Behavior
Hot reloading message shows up but the bound function isn't re-rendered.
Reproducible Demo
https://github.com/levibuzolic/HotReloadBug
The text was updated successfully, but these errors were encountered: