-
Notifications
You must be signed in to change notification settings - Fork 46.9k
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
Effects list refactor continued: did-bailout flag #19322
Effects list refactor continued: did-bailout flag #19322
Conversation
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. Latest deployment of this branch, based on commit b044185:
|
Details of bundled changes.Comparing: 61dd00d...b044185 react-dom
ReactDOM: size: 0.0%, gzip: 0.0% Size changes (stable) |
Details of bundled changes.Comparing: 61dd00d...b044185 react-dom
ReactDOM: size: 0.0%, gzip: 0.0% Size changes (experimental) |
Process deletions as we traverse the tree during commit, before we process other effects. This has the result of better mimicking the previous sequencing.
0d1a83e
to
7171494
Compare
packages/react-reconciler/src/ReactFiberHydrationContext.new.js
Outdated
Show resolved
Hide resolved
Overall the implementation looks right, exactly what I had expected. 👍 There are a few other bailout cases in begin phase where we need to set the react/packages/react-reconciler/src/ReactFiberBeginWork.new.js Lines 1842 to 1848 in 9ea0f67
Basically anywhere there's a |
export const DidBailout = /* */ 0b0001; | ||
export const BeforeMutation = /* */ 0b0010; | ||
export const Mutation = /* */ 0b0100; | ||
export const Layout = /* */ 0b1000; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As a follow up, we should move the Incomplete
, ShouldCapture
, and DidCapture
flags to this new field.
Builds on top of #19261
subtreeTag
to use its own meta values rather than copyingeffectTag
values.View only the delta.