File tree 2 files changed +2
-5
lines changed
packages/react-reconciler/src
2 files changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -112,10 +112,7 @@ function FiberRootNode(
112
112
this . incompleteTransitions = new Map ( ) ;
113
113
if ( enableTransitionTracing ) {
114
114
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 ) ;
119
116
}
120
117
121
118
if ( enableProfilerTimer && enableProfilerCommitHooks ) {
Original file line number Diff line number Diff line change @@ -357,7 +357,7 @@ export type TransitionTracingCallbacks = {
357
357
// The following fields are only used in transition tracing in Profile builds
358
358
type TransitionTracingOnlyFiberRootProperties = {
359
359
transitionCallbacks : null | TransitionTracingCallbacks ,
360
- transitionLanes : Array < Set < Transition > | null > ,
360
+ transitionLanes : LaneMap < Set < Transition > | null > ,
361
361
// Transitions on the root can be represented as a bunch of tracing markers.
362
362
// Each entangled group of transitions can be treated as a tracing marker.
363
363
// It will have a set of pending suspense boundaries. These transitions
You can’t perform that action at this time.
0 commit comments