mirror of
https://github.com/facebook/react.git
synced 2026-11-18 20:15:56 +00:00
1 parent
84b86471ea
commit
659c13963e
1 file changed
+1
-1
+1
-1
@@ -1266,7 +1266,7 @@ function renderRoot(root: FiberRoot, isYieldy: boolean): void {
|
||||
subscriber.onWorkStarted(interactions, threadID);
|
||||
} catch (error) {
|
||||
// Work thrown by an interaction tracing subscriber should be rethrown,
|
||||
// But only once it's safe (to avoid leaveing the scheduler in an invalid state).
|
||||
// But only once it's safe (to avoid leaving the scheduler in an invalid state).
|
||||
// Store the error for now and we'll re-throw in finishRendering().
|
||||
if (!hasUnhandledError) {
|
||||
hasUnhandledError = true;
|
||||
|
||||
Reference in new issue
Block a user