mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
committed by
Brandon Dail
parent
84b86471ea
commit
659c13963e
+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