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 authored and GitHub committed 2021-12-17 09:40:39 -08:00
1 parent aa8f2bdbce
commit ceee524a8f
2 files changed
-4

No files matched your search

@@ -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;