File tree Expand file tree Collapse file tree 2 files changed +2
-5
lines changed
packages/react-reconciler/src Expand file tree Collapse file tree 2 files changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -112,10 +112,7 @@ function FiberRootNode(
112112 this . incompleteTransitions = new Map ( ) ;
113113 if ( enableTransitionTracing ) {
114114 this . transitionCallbacks = null ;
115- const transitionLanesMap = ( this . transitionLanes = [ ] ) ;
116- for ( let i = 0 ; i < TotalLanes ; i ++ ) {
117- transitionLanesMap . push ( null ) ;
118- }
115+ this . transitionLanes = createLaneMap ( null ) ;
119116 }
120117
121118 if ( enableProfilerTimer && enableProfilerCommitHooks ) {
Original file line number Diff line number Diff line change @@ -357,7 +357,7 @@ export type TransitionTracingCallbacks = {
357357// The following fields are only used in transition tracing in Profile builds
358358type TransitionTracingOnlyFiberRootProperties = {
359359 transitionCallbacks : null | TransitionTracingCallbacks ,
360- transitionLanes : Array < Set < Transition > | null > ,
360+ transitionLanes : LaneMap < Set < Transition > | null > ,
361361 // Transitions on the root can be represented as a bunch of tracing markers.
362362 // Each entangled group of transitions can be treated as a tracing marker.
363363 // It will have a set of pending suspense boundaries. These transitions
You can’t perform that action at this time.
0 commit comments