mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
Remove unreachable code (#13762)
This commit is contained in:
@@ -929,23 +929,12 @@ function completeUnitOfWork(workInProgress: Fiber): Fiber | null {
|
||||
nextRenderExpirationTime,
|
||||
);
|
||||
}
|
||||
let next = nextUnitOfWork;
|
||||
stopWorkTimer(workInProgress);
|
||||
resetChildExpirationTime(workInProgress, nextRenderExpirationTime);
|
||||
if (__DEV__) {
|
||||
ReactCurrentFiber.resetCurrentFiber();
|
||||
}
|
||||
|
||||
if (next !== null) {
|
||||
stopWorkTimer(workInProgress);
|
||||
if (__DEV__ && ReactFiberInstrumentation.debugTool) {
|
||||
ReactFiberInstrumentation.debugTool.onCompleteWork(workInProgress);
|
||||
}
|
||||
// If completing this work spawned new work, do that next. We'll come
|
||||
// back here again.
|
||||
return next;
|
||||
}
|
||||
|
||||
if (
|
||||
returnFiber !== null &&
|
||||
// Do not append effects to parents if a sibling failed to complete
|
||||
|
||||
Reference in New Issue
Block a user