GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — [Fix] Errors should not "unsuspend" a transition (#22423) · react/react@05726d7

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • packages/react-reconciler/src
    • ReactFiberWorkLoop.new.js
    • ReactFiberWorkLoop.old.js
    • __tests__
      • ReactConcurrentErrorRecovery-test.js
Expand file treeCollapse file tree
Open diff view settings
Collapse file

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

Copy file name to clipboardExpand all lines: packages/react-reconciler/src/ReactFiberWorkLoop.new.js
+3-2Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1445,7 +1445,8 @@ export function renderDidSuspend(): void {
14451445
export function renderDidSuspendDelayIfPossible(): void {
14461446
if (
14471447
workInProgressRootExitStatus === RootIncomplete ||
1448-
workInProgressRootExitStatus === RootSuspended
1448+
workInProgressRootExitStatus === RootSuspended ||
1449+
workInProgressRootExitStatus === RootErrored
14491450
) {
14501451
workInProgressRootExitStatus = RootSuspendedWithDelay;
14511452
}
@@ -1469,7 +1470,7 @@ export function renderDidSuspendDelayIfPossible(): void {
14691470
}
14701471

14711472
export function renderDidError() {
1472-
if (workInProgressRootExitStatus !== RootCompleted) {
1473+
if (workInProgressRootExitStatus !== RootSuspendedWithDelay) {
14731474
workInProgressRootExitStatus = RootErrored;
14741475
}
14751476
}
Collapse file

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

Copy file name to clipboardExpand all lines: packages/react-reconciler/src/ReactFiberWorkLoop.old.js
+3-2Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1445,7 +1445,8 @@ export function renderDidSuspend(): void {
14451445
export function renderDidSuspendDelayIfPossible(): void {
14461446
if (
14471447
workInProgressRootExitStatus === RootIncomplete ||
1448-
workInProgressRootExitStatus === RootSuspended
1448+
workInProgressRootExitStatus === RootSuspended ||
1449+
workInProgressRootExitStatus === RootErrored
14491450
) {
14501451
workInProgressRootExitStatus = RootSuspendedWithDelay;
14511452
}
@@ -1469,7 +1470,7 @@ export function renderDidSuspendDelayIfPossible(): void {
14691470
}
14701471

14711472
export function renderDidError() {
1472-
if (workInProgressRootExitStatus !== RootCompleted) {
1473+
if (workInProgressRootExitStatus !== RootSuspendedWithDelay) {
14731474
workInProgressRootExitStatus = RootErrored;
14741475
}
14751476
}

0 commit comments

Comments
0 (0)
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.