Skip to content

Commit 7a67816

Browse files
committed
[WIP] Debug work loop
1 parent 4225133 commit 7a67816

File tree

2 files changed

+0
-34
lines changed

2 files changed

+0
-34
lines changed

packages/react-reconciler/src/ReactFiberWorkLoop.new.js

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1330,23 +1330,6 @@ export function renderDidSuspendDelayIfPossible(): void {
13301330
) {
13311331
workInProgressRootExitStatus = RootSuspendedWithDelay;
13321332
}
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-
}
13501333
}
13511334

13521335
export function renderDidError() {

packages/react-reconciler/src/ReactFiberWorkLoop.old.js

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1330,23 +1330,6 @@ export function renderDidSuspendDelayIfPossible(): void {
13301330
) {
13311331
workInProgressRootExitStatus = RootSuspendedWithDelay;
13321332
}
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-
}
13501333
}
13511334

13521335
export function renderDidError() {

0 commit comments

Comments
 (0)