mirror of
https://github.com/hanzoai/react.git
synced 2026-09-24 17:02:27 +00:00
Remove unnecessary clearContainer call (#22979)
This was added when we added error recovery for hydration errors. However, when the fix up pass happens later on, it'll still call clearContainer in the commit phase. So this call is unnecessary.
This commit is contained in:
committed by
GitHub
parent
384990677e
commit
0b41c03dca
@@ -86,7 +86,6 @@ import {
|
||||
cancelTimeout,
|
||||
noTimeout,
|
||||
afterActiveInstanceBlur,
|
||||
clearContainer,
|
||||
getCurrentEventPriority,
|
||||
supportsMicrotasks,
|
||||
errorHydratingContainer,
|
||||
@@ -885,7 +884,6 @@ function recoverFromConcurrentError(root, errorRetryLanes) {
|
||||
if (__DEV__) {
|
||||
errorHydratingContainer(root.containerInfo);
|
||||
}
|
||||
clearContainer(root.containerInfo);
|
||||
}
|
||||
|
||||
let exitStatus;
|
||||
|
||||
@@ -86,7 +86,6 @@ import {
|
||||
cancelTimeout,
|
||||
noTimeout,
|
||||
afterActiveInstanceBlur,
|
||||
clearContainer,
|
||||
getCurrentEventPriority,
|
||||
supportsMicrotasks,
|
||||
errorHydratingContainer,
|
||||
@@ -885,7 +884,6 @@ function recoverFromConcurrentError(root, errorRetryLanes) {
|
||||
if (__DEV__) {
|
||||
errorHydratingContainer(root.containerInfo);
|
||||
}
|
||||
clearContainer(root.containerInfo);
|
||||
}
|
||||
|
||||
let exitStatus;
|
||||
|
||||
Reference in New Issue
Block a user