mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +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:
@@ -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