File tree Expand file tree Collapse file tree 2 files changed +0
-34
lines changed
packages/react-reconciler/src Expand file tree Collapse file tree 2 files changed +0
-34
lines changed Original file line number Diff line number Diff line change @@ -1330,23 +1330,6 @@ export function renderDidSuspendDelayIfPossible(): void {
1330
1330
) {
1331
1331
workInProgressRootExitStatus = RootSuspendedWithDelay ;
1332
1332
}
1333
-
1334
- // Check if there are updates that we skipped tree that might have unblocked
1335
- // this render.
1336
- if (
1337
- workInProgressRoot !== null &&
1338
- ( includesNonIdleWork ( workInProgressRootSkippedLanes ) ||
1339
- includesNonIdleWork ( workInProgressRootUpdatedLanes ) )
1340
- ) {
1341
- // Mark the current render as suspended so that we switch to working on
1342
- // the updates that were skipped. Usually we only suspend at the end of
1343
- // the render phase.
1344
- // TODO: We should probably always mark the root as suspended immediately
1345
- // (inside this function), since by suspending at the end of the render
1346
- // phase introduces a potential mistake where we suspend lanes that were
1347
- // pinged or updated while we were rendering.
1348
- markRootSuspended ( workInProgressRoot , workInProgressRootRenderLanes ) ;
1349
- }
1350
1333
}
1351
1334
1352
1335
export function renderDidError ( ) {
Original file line number Diff line number Diff line change @@ -1330,23 +1330,6 @@ export function renderDidSuspendDelayIfPossible(): void {
1330
1330
) {
1331
1331
workInProgressRootExitStatus = RootSuspendedWithDelay ;
1332
1332
}
1333
-
1334
- // Check if there are updates that we skipped tree that might have unblocked
1335
- // this render.
1336
- if (
1337
- workInProgressRoot !== null &&
1338
- ( includesNonIdleWork ( workInProgressRootSkippedLanes ) ||
1339
- includesNonIdleWork ( workInProgressRootUpdatedLanes ) )
1340
- ) {
1341
- // Mark the current render as suspended so that we switch to working on
1342
- // the updates that were skipped. Usually we only suspend at the end of
1343
- // the render phase.
1344
- // TODO: We should probably always mark the root as suspended immediately
1345
- // (inside this function), since by suspending at the end of the render
1346
- // phase introduces a potential mistake where we suspend lanes that were
1347
- // pinged or updated while we were rendering.
1348
- markRootSuspended ( workInProgressRoot , workInProgressRootRenderLanes ) ;
1349
- }
1350
1333
}
1351
1334
1352
1335
export function renderDidError ( ) {
You can’t perform that action at this time.
0 commit comments