Skip to content

Commit

Permalink
nits
Browse files Browse the repository at this point in the history
  • Loading branch information
gnoff committed Mar 25, 2023
1 parent ce634b1 commit 9e81f40
Showing 1 changed file with 4 additions and 12 deletions.
16 changes: 4 additions & 12 deletions packages/react-reconciler/src/ReactFiberCommitWork.js
Original file line number Diff line number Diff line change
Expand Up @@ -4108,21 +4108,13 @@ function accumulateSuspenseyCommitOnFiber(fiber: Fiber) {
}
break;
}
case HostRoot: {
if (enableFloat && supportsResources) {
const previousHoistableRoot = currentHoistableRoot;
currentHoistableRoot = getHoistableRoot(fiber.stateNode.containerInfo);

recursivelyAccumulateSuspenseyCommit(fiber);
currentHoistableRoot = previousHoistableRoot;
break;
}
}
// eslint-disable-next-line-no-fallthrough
case HostRoot:
case HostPortal: {
if (enableFloat && supportsResources) {
const previousHoistableRoot = currentHoistableRoot;
currentHoistableRoot = getHoistableRoot(fiber.stateNode.containerInfo);
const container: Container = fiber.stateNode.containerInfo;
currentHoistableRoot = getHoistableRoot(container);

recursivelyAccumulateSuspenseyCommit(fiber);
currentHoistableRoot = previousHoistableRoot;
break;
Expand Down

0 comments on commit 9e81f40

Please sign in to comment.