-
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
[draft] Move resetChildLanes into complete work #19801
[draft] Move resetChildLanes into complete work #19801
Conversation
This enabled us to remove a few hot path tag-type checks, but did not otherwise change any functionality.
…bubble methods so I can refactor each in isolation
Details of bundled changes.Comparing: d38ec17...7f575fa react-dom
ReactDOM: size: 0.0%, gzip: 0.0% Size changes (stable) |
Details of bundled changes.Comparing: d38ec17...7f575fa react-dom
ReactDOM: size: 0.0%, gzip: 0.0% Size changes (experimental) |
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 7f575fa:
|
(rather than from children to workInProgress). This attempt isn't quite right though. Has some test failures that requires additional investigation.
0bafaf7
to
7f575fa
Compare
After some thought and discussion, we've decided this effort isn't worth the time and complexity it requires right now. Updating For now, I'm going to move forward with the initial small change this branch started with (moving Closing in favor of PR #19836 |
Alternative to #19440.
I'm breaking this PR down into small chunks for my own benefit. (Obviously these commits will be squashed prior to merging.)
resetChildLanes
out of work loop and into complete work (namedbubbleProperties
)bubbleProperties
into their corresponding switch/case statements.bubbleProperties
up into separate functions for lanes, flags, and Profiler durations.subtreeLanes
to bubble fromworkInProgress
toparent
(rather than fromchildren
toworkInProgress
).childLanes
to bubble fromworkInProgress
toparent
(rather than fromchildren
toworkInProgress
). (I've committed a partial refactor for this, but it still has some failing tests.)workInProgress
toparent
(rather than fromchildren
toworkInProgress
).bubbleProperties
method.