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:
Sebastian Markbåge
2021-12-17 09:40:39 -08:00
committed by GitHub
parent 384990677e
commit 0b41c03dca
2 changed files with 0 additions and 4 deletions
@@ -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;