-
Notifications
You must be signed in to change notification settings - Fork 47k
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
Ensure updating Context.Consumer
inside suspended Suspense
component
#21414
Conversation
Hi @okmttdhr! Thank you for your pull request and welcome to our community. Action RequiredIn order to merge any pull request (code, docs, etc.), we require contributors to sign our Contributor License Agreement, and we don't seem to have one on file for you. ProcessIn order for us to review and merge your suggested changes, please sign at https://code.facebook.com/cla. If you are contributing on behalf of someone else (eg your employer), the individual CLA may not be sufficient and your employer may need to sign the corporate CLA. Once the CLA is signed, our tooling will perform checks and validations. Afterwards, the pull request will be tagged with If you have received this in error or have any questions, please contact us at cla@fb.com. Thanks! |
Comparing: 51947a1...df5a90b Critical size changesIncludes critical production bundles, as well as any change greater than 2%:
Significant size changesIncludes any change greater than 0.2%: (No significant changes) |
e03c92e
to
fb36d98
Compare
Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Facebook open source project. Thanks! |
1 similar comment
Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Facebook open source project. Thanks! |
Context.Consumer
inside suspended Suspense
componentContext.Consumer
inside suspended Suspense
component
aea2754
to
0c94041
Compare
0c94041
to
b45ac12
Compare
b45ac12
to
ed58992
Compare
This pull request has been automatically marked as stale. If this pull request is still relevant, please leave any comment (for example, "bump"), and we'll keep it open. We are sorry that we haven't been able to prioritize reviewing it yet. Your contribution is very much appreciated. |
bump |
Another possible fix: #23095. Not sure what's better. |
e3c5596
to
ba7d2ed
Compare
ba7d2ed
to
3a1aa3e
Compare
…'s consistent Revert "Update only parents that may be inconsistent" This reverts commit 3a1aa3e.
Let me briefly summarize for my understanding. First of all, this PR is an approach to "directly" update But this PR only fixes the case where the bug in #19701 occurs. I understood #23095 to be an approach that always traverse up to the propagation root, even if it looks consistent.
|
We went with #23095. |
Summary
Ensure updating
Context.Consumer
inside suspendedSuspense
component when context updates. Please see #19701 for details of this bug.Fixes #19701
Related #14717 #16346 | #20890 | #18796
Test Plan
Run
yarn test --watch ReactSuspense-test.internal
.