[Fiber][enableYieldingBeforePassive] Ensure passive effects are flushed after a suspended commit resolves#31858
Closed
eps1lon wants to merge 1 commit intofacebook:mainfrom
Closed
[Fiber][enableYieldingBeforePassive] Ensure passive effects are flushed after a suspended commit resolves#31858eps1lon wants to merge 1 commit intofacebook:mainfrom
eps1lon wants to merge 1 commit intofacebook:mainfrom
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
sebmarkbage
approved these changes
Dec 19, 2024
Contributor
sebmarkbage
left a comment
There was a problem hiding this comment.
Seems sketchy but ok.
|
Orb Code Review (powered by GLM 5.1 on Orb Cloud) Reviewed the FiberWorkLoop changes. Observations:
No security or correctness concerns identified. Summary: Focused fix in the fiber work loop. Changes appear correct and well-scoped. Assessment: approve |
d94334a to
fc4966a
Compare
fc4966a to
1c15c6b
Compare
Collaborator
Author
|
Fixed in https://github.com/facebook/react/pull/31930/changes#diff-72ff2175ae3569037f0b16802a41b0cda2b2d66bb97f2bda78ed8445ed487b58R3143 instead. Will enable test in #36278 instead |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
ensureRootIsScheduledwill bail out of flushing passive effects if it thinks the commit is suspended. So we need to make sure we clear thecancelPendingcommitcallback since we use that to check if a commit is suspended.This will re-enable
enableYieldingBeforePassiveforreact@experimentaland make the flag dynamic for FB builds.How did you test this change?