-
Notifications
You must be signed in to change notification settings - Fork 47.6k
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
fix: restore execution context after RetryAfterError completed #21766
Changes from 3 commits
1f3b991
c591dc8
213babc
dd36fa2
2c9bc48
43699a6
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -813,6 +813,8 @@ function performConcurrentWorkOnRoot(root, didTimeout) { | |
lanes = errorRetryLanes; | ||
exitStatus = renderRootSync(root, errorRetryLanes); | ||
} | ||
|
||
executionContext &= ~RetryAfterError; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is the least intrusive change. I don't have all the context around what There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Could you do There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. done: |
||
} | ||
|
||
if (exitStatus === RootFatalErrored) { | ||
|
@@ -1006,6 +1008,8 @@ function performSyncWorkOnRoot(root) { | |
lanes = errorRetryLanes; | ||
exitStatus = renderRootSync(root, lanes); | ||
} | ||
|
||
executionContext &= ~RetryAfterError; | ||
} | ||
|
||
if (exitStatus === RootFatalErrored) { | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: Add an expected message to
toThrow(...)
assertionThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done:
43699a6
(#21766)