Skip to content
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

Prevent cascading updates in componentDidUpdate #570

Merged
merged 1 commit into from
Mar 4, 2020
Merged

Conversation

izhan
Copy link
Contributor

@izhan izhan commented Mar 4, 2020

Fixes #568. Calls to owner.onInput within componentDidUpdate eventually triggered another componentDidUpdate

There may be further regressions with #527 since componentWillReceiveProps happens before the render cycle, but componentDidUpdate happens after. But would love to see this being fixed forward since #527 is still an awesome change!

Ran tests, linter, etc – lmk what else I should do.

@nosir
Copy link
Owner

nosir commented Mar 4, 2020

Thanks, looks this fixed the issue introduced by #527.

@nosir
Copy link
Owner

nosir commented Mar 4, 2020

Even though the original demo post in #568 didn't use the value prop correctly.

@nosir nosir merged commit b9a9e17 into nosir:master Mar 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1.5.4 patch update crashes React
2 participants