GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||||||||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||||||||||||||||||||||||||||||||||||
GeezerVison is showing github.com — Track nearest Suspense handler on stack by acdlite · Pull Request #24585 · react/react Conversation
|
|
Comparing: a7b192e...396b786 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) |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
02ba855 to
409d7c8
Compare
94819a9 to
61458f3
Compare
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Reviewed together offline, lgtm
Sorry, something went wrong.
There was an error while loading. Please reload this page.
This adds a new stack cursor for tracking whether we're rendering inside a subtree that's currently hidden. This corresponds to the same place where we're already tracking the "base lanes" needed to reveal a hidden subtree — that is, when going from hidden -> visible, the base lanes are the ones that we skipped over when we deferred the subtree. We must includes all the base lanes and their updates in order to avoid an inconsistency with the surrounding content that already committed. I consolidated the base lanes logic and the hidden logic into the same set of push/pop calls. This is intended to replace the InvisibleParentContext that is currently part of SuspenseContext, but I haven't done that part yet.
Instead of traversing the return path whenever something suspends to find the nearest Suspense boundary, we can push the Suspense boundary onto the stack before entering its subtree. This doesn't affect the overall algorithm that much, but because we already do all the same logic in the begin phase, we can save some redundant work by tracking that information on the stack instead of recomputing it every time.
73b5faa to
396b786
Compare
Summary: This sync includes the following changes: - **[c1f5884](react/react@c1f5884ff )**: Add missing null checks to OffscreenInstance code ([#24846](react/react#24846)) //<Andrew Clark>// - **[4cd788a](react/react@4cd788aef )**: Revert "Revert [Transition Tracing] Refactor Transition Tracing Root Code" ([#24830](react/react#24830)) //<Luna Ruan>// - **[e61fd91](react/react@e61fd91f5 )**: Revert "[Transition Tracing] Refactor Transition Tracing Root Code ([#24766](react/react#24766))" ([#24829](react/react#24829)) //<Andrew Clark>// - **[4012963](react/react@401296310 )**: [Transition Tracing] Refactor Transition Tracing Root Code ([#24766](react/react#24766)) //<Luna Ruan>// - **[1859329](react/react@185932902 )**: Track nearest Suspense handler on stack ([#24585](react/react#24585)) //<Andrew Clark>// - **[a7b192e](react/react@a7b192e0f )**: Add test gate alias for Offscreen ([#24749](react/react#24749)) //<Andrew Clark>// - **[6b6cf83](react/react@6b6cf8311 )**: Land forked reconciler changes ([#24817](react/react#24817)) //<Andrew Clark>// - **[d1432ba](react/react@d1432ba93 )**: [Transition Tracing] Fix excess calls to the transition start callback ([#24806](react/react#24806)) //<Luna Ruan>// - **[88574c1](react/react@88574c1b8 )**: Fix enableTransitionTracing flag ([#24801](react/react#24801)) //<Luna Ruan>// - **[a4bed46](react/react@a4bed4696 )**: [Transition Tracing] Add Tracing Markers ([#24686](react/react#24686)) //<Luna Ruan>// - **[1678530](react/react@167853026 )**: fix hydration warning suppression in text comparisons ([#24784](react/react#24784)) //<Josh Story>// - **[9abe745](react/react@9abe745aa )**: [DevTools][Timeline Profiler] Component Stacks Backend ([#24776](react/react#24776)) //<Luna Ruan>// - **[cf665c4](react/react@cf665c4b7 )**: [DevTools] Refactor incompleteTransitions field from Root Fiber memoized state to FiberRoot ([#24765](react/react#24765)) //<Luna Ruan>// - **[56389e8](react/react@56389e81f )**: Abort Flight ([#24754](react/react#24754)) //<Sebastian Markbåge>// - **[0f216ae](react/react@0f216ae31 )**: Add entry points for "static" server rendering passes ([#24752](react/react#24752)) //<Sebastian Markbåge>// - **[f796fa1](react/react@f796fa13a )**: Rename Segment to Task in Flight ([#24753](react/react#24753)) //<Sebastian Markbåge>// - **[0f0aca3](react/react@0f0aca3ab )**: Aborting early should not infinitely suspend ([#24751](react/react#24751)) //<Sebastian Markbåge>// - **[12a738f](react/react@12a738f1a )**: [Transition Tracing] Add Support for Multiple Transitions on Root ([#24732](react/react#24732)) //<Luna Ruan>// - **[72ebc70](react/react@72ebc703a )**: [DevTools] fix useDeferredValue to match reconciler change ([#24742](react/react#24742)) //<Mengdi Chen>// - **[7cf9f5e](react/react@7cf9f5e03 )**: Extra space ([#24612](react/react#24612)) //<Kerim Büyükakyüz>// Changelog: [General][Changed] - React Native sync for revisions 229c86a...c1f5884 Reviewed By: mdvacca, GijsWeterings Differential Revision: D38904311 fbshipit-source-id: 1e30bc420c30ec7a0c0073fc92a706afef4b3340
Summary: This sync includes the following changes: - **[c1f5884](react/react@c1f5884ff )**: Add missing null checks to OffscreenInstance code ([#24846](react/react#24846)) //<Andrew Clark>// - **[4cd788a](react/react@4cd788aef )**: Revert "Revert [Transition Tracing] Refactor Transition Tracing Root Code" ([#24830](react/react#24830)) //<Luna Ruan>// - **[e61fd91](react/react@e61fd91f5 )**: Revert "[Transition Tracing] Refactor Transition Tracing Root Code ([#24766](react/react#24766))" ([#24829](react/react#24829)) //<Andrew Clark>// - **[4012963](react/react@401296310 )**: [Transition Tracing] Refactor Transition Tracing Root Code ([#24766](react/react#24766)) //<Luna Ruan>// - **[1859329](react/react@185932902 )**: Track nearest Suspense handler on stack ([#24585](react/react#24585)) //<Andrew Clark>// - **[a7b192e](react/react@a7b192e0f )**: Add test gate alias for Offscreen ([#24749](react/react#24749)) //<Andrew Clark>// - **[6b6cf83](react/react@6b6cf8311 )**: Land forked reconciler changes ([#24817](react/react#24817)) //<Andrew Clark>// - **[d1432ba](react/react@d1432ba93 )**: [Transition Tracing] Fix excess calls to the transition start callback ([#24806](react/react#24806)) //<Luna Ruan>// - **[88574c1](react/react@88574c1b8 )**: Fix enableTransitionTracing flag ([#24801](react/react#24801)) //<Luna Ruan>// - **[a4bed46](react/react@a4bed4696 )**: [Transition Tracing] Add Tracing Markers ([#24686](react/react#24686)) //<Luna Ruan>// - **[1678530](react/react@167853026 )**: fix hydration warning suppression in text comparisons ([#24784](react/react#24784)) //<Josh Story>// - **[9abe745](react/react@9abe745aa )**: [DevTools][Timeline Profiler] Component Stacks Backend ([#24776](react/react#24776)) //<Luna Ruan>// - **[cf665c4](react/react@cf665c4b7 )**: [DevTools] Refactor incompleteTransitions field from Root Fiber memoized state to FiberRoot ([#24765](react/react#24765)) //<Luna Ruan>// - **[56389e8](react/react@56389e81f )**: Abort Flight ([#24754](react/react#24754)) //<Sebastian Markbåge>// - **[0f216ae](react/react@0f216ae31 )**: Add entry points for "static" server rendering passes ([#24752](react/react#24752)) //<Sebastian Markbåge>// - **[f796fa1](react/react@f796fa13a )**: Rename Segment to Task in Flight ([#24753](react/react#24753)) //<Sebastian Markbåge>// - **[0f0aca3](react/react@0f0aca3ab )**: Aborting early should not infinitely suspend ([#24751](react/react#24751)) //<Sebastian Markbåge>// - **[12a738f](react/react@12a738f1a )**: [Transition Tracing] Add Support for Multiple Transitions on Root ([#24732](react/react#24732)) //<Luna Ruan>// - **[72ebc70](react/react@72ebc703a )**: [DevTools] fix useDeferredValue to match reconciler change ([#24742](react/react#24742)) //<Mengdi Chen>// - **[7cf9f5e](react/react@7cf9f5e03 )**: Extra space ([#24612](react/react#24612)) //<Kerim Büyükakyüz>// Changelog: [General][Changed] - React Native sync for revisions 229c86a...c1f5884 Reviewed By: mdvacca, GijsWeterings Differential Revision: D38904311 fbshipit-source-id: 1e30bc420c30ec7a0c0073fc92a706afef4b3340
* [FORKED] Add HiddenContext to track if subtree is hidden This adds a new stack cursor for tracking whether we're rendering inside a subtree that's currently hidden. This corresponds to the same place where we're already tracking the "base lanes" needed to reveal a hidden subtree — that is, when going from hidden -> visible, the base lanes are the ones that we skipped over when we deferred the subtree. We must includes all the base lanes and their updates in order to avoid an inconsistency with the surrounding content that already committed. I consolidated the base lanes logic and the hidden logic into the same set of push/pop calls. This is intended to replace the InvisibleParentContext that is currently part of SuspenseContext, but I haven't done that part yet. * Add previous commit to forked revisions * [FORKED] Track nearest Suspense handler on stack Instead of traversing the return path whenever something suspends to find the nearest Suspense boundary, we can push the Suspense boundary onto the stack before entering its subtree. This doesn't affect the overall algorithm that much, but because we already do all the same logic in the begin phase, we can save some redundant work by tracking that information on the stack instead of recomputing it every time. * Add previous commit to forked revisions
* [FORKED] Add HiddenContext to track if subtree is hidden This adds a new stack cursor for tracking whether we're rendering inside a subtree that's currently hidden. This corresponds to the same place where we're already tracking the "base lanes" needed to reveal a hidden subtree — that is, when going from hidden -> visible, the base lanes are the ones that we skipped over when we deferred the subtree. We must includes all the base lanes and their updates in order to avoid an inconsistency with the surrounding content that already committed. I consolidated the base lanes logic and the hidden logic into the same set of push/pop calls. This is intended to replace the InvisibleParentContext that is currently part of SuspenseContext, but I haven't done that part yet. * Add previous commit to forked revisions * [FORKED] Track nearest Suspense handler on stack Instead of traversing the return path whenever something suspends to find the nearest Suspense boundary, we can push the Suspense boundary onto the stack before entering its subtree. This doesn't affect the overall algorithm that much, but because we already do all the same logic in the begin phase, we can save some redundant work by tracking that information on the stack instead of recomputing it every time. * Add previous commit to forked revisions
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.