Skip to content

Commit dc5e75a

Browse files
committed
add braces to case
1 parent d1a4249 commit dc5e75a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/react-reconciler/src/ReactFiberBeginWork.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3584,7 +3584,7 @@ function attemptEarlyBailoutIfNoScheduledUpdate(
35843584
// the begin phase. There's still some bookkeeping we that needs to be done
35853585
// in this optimized path, mostly pushing stuff onto the stack.
35863586
switch (workInProgress.tag) {
3587-
case HostRoot:
3587+
case HostRoot: {
35883588
pushHostRootContext(workInProgress);
35893589
const root: FiberRoot = workInProgress.stateNode;
35903590
pushRootTransition(workInProgress, root, renderLanes);
@@ -3597,6 +3597,7 @@ function attemptEarlyBailoutIfNoScheduledUpdate(
35973597
pushCacheProvider(workInProgress, cache);
35983598
resetHydrationState();
35993599
break;
3600+
}
36003601
case HostSingleton:
36013602
case HostComponent:
36023603
pushHostContext(workInProgress);

0 commit comments

Comments
 (0)