-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Problem with rendering child component on props changes #4279
Comments
Looks like this got broken between 10.18.1 and 10.18.2, wondering whether this contributed to it. Will investigate. EDIT: this looks to be a timing issue as it's not really reproducible in our test suite 😅 |
Did some debugging, maybe it could help. When Before the mentioned change |
Yeah, I got to a similar conclusion, we might just need to change the |
Describe the bug
There was a problem with the rendering of components when updating props.
If you pass the state of a parent component as a prop to a child component, and then update the state in the parent component, the child component is not rerendered.
To Reproduce
Preact - https://codepen.io/coder4u/pen/YzgdQEL
React without rerender issue - https://codepen.io/coder4u/pen/qBvLXOy
Steps to reproduce the behavior:
Expected behavior
Child component must rerender when it props changed.
The text was updated successfully, but these errors were encountered: