-
-
Notifications
You must be signed in to change notification settings - Fork 3.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
Hot reloading via react-transform/babel6 is not working when rendering a connected component from a non-connected component #224
Comments
So this is a bug. In particular it is caused by us recomputing child props inside @epeli Can you look at this? Ideally we shouldn't care if |
Note: this shouldn't affect anything other than hot reloading because normally |
Fixed in 4.0.3, thank you again very much for reporting. |
Confirmed this works on my project as well. Thanks for fixing this so quickly! |
I think this is an issue with how react-redux handles the hot reloading of connected components. If you have a non-connected (dumb) component render a connected component as a wrapper component, any content within that wrapper will no longer be re-rendered on change.
_Connected component:_
_Dumb component rendering connected component:_
Changing the text
this is a test
will not cause the component to re-render. Replace<Form>
with<div>
and everything works as expected. Replaceconnect()(Form)
with justForm
and everything works as expected.Repository demonstrating issue is available at https://github.com/bunkat/counter. It is the react-redux counter example with babel6 hot loading and a new connected wrapper component.
To reproduce the issue:
The module will be updated via HMR, but the Counter component will not be rendered with the new text.
The text was updated successfully, but these errors were encountered: