@@ -26,6 +26,7 @@ import type {OffscreenState} from './ReactFiberOffscreenComponent';
26
26
import type { HookFlags } from './ReactHookEffectTags' ;
27
27
import type { Cache } from './ReactFiberCacheComponent.new' ;
28
28
import type { RootState } from './ReactFiberRoot.new' ;
29
+ import type { Transition } from './ReactFiberTracingMarkerComponent.new' ;
29
30
30
31
import {
31
32
enableCreateEventHandleAPI ,
@@ -2614,15 +2615,22 @@ export function commitPassiveMountEffects(
2614
2615
root : FiberRoot ,
2615
2616
finishedWork : Fiber ,
2616
2617
committedLanes : Lanes ,
2618
+ committedTransitions : Array < Transition > | null ,
2617
2619
) : void {
2618
2620
nextEffect = finishedWork ;
2619
- commitPassiveMountEffects_begin ( finishedWork , root , committedLanes ) ;
2621
+ commitPassiveMountEffects_begin (
2622
+ finishedWork ,
2623
+ root ,
2624
+ committedLanes ,
2625
+ committedTransitions ,
2626
+ ) ;
2620
2627
}
2621
2628
2622
2629
function commitPassiveMountEffects_begin (
2623
2630
subtreeRoot : Fiber ,
2624
2631
root : FiberRoot ,
2625
2632
committedLanes : Lanes ,
2633
+ committedTransitions : Array < Transition > | null ,
2626
2634
) {
2627
2635
while ( nextEffect !== null ) {
2628
2636
const fiber = nextEffect ;
@@ -2631,7 +2639,12 @@ function commitPassiveMountEffects_begin(
2631
2639
ensureCorrectReturnPointer ( firstChild , fiber ) ;
2632
2640
nextEffect = firstChild ;
2633
2641
} else {
2634
- commitPassiveMountEffects_complete ( subtreeRoot , root , committedLanes ) ;
2642
+ commitPassiveMountEffects_complete (
2643
+ subtreeRoot ,
2644
+ root ,
2645
+ committedLanes ,
2646
+ committedTransitions ,
2647
+ ) ;
2635
2648
}
2636
2649
}
2637
2650
}
@@ -2640,14 +2653,20 @@ function commitPassiveMountEffects_complete(
2640
2653
subtreeRoot : Fiber ,
2641
2654
root : FiberRoot ,
2642
2655
committedLanes : Lanes ,
2656
+ committedTransitions : Array < Transition > | null ,
2643
2657
) {
2644
2658
while ( nextEffect !== null ) {
2645
2659
const fiber = nextEffect ;
2646
2660
2647
2661
if ( ( fiber . flags & Passive ) !== NoFlags ) {
2648
2662
setCurrentDebugFiberInDEV ( fiber ) ;
2649
2663
try {
2650
- commitPassiveMountOnFiber ( root , fiber , committedLanes ) ;
2664
+ commitPassiveMountOnFiber (
2665
+ root ,
2666
+ fiber ,
2667
+ committedLanes ,
2668
+ committedTransitions ,
2669
+ ) ;
2651
2670
} catch ( error ) {
2652
2671
reportUncaughtErrorInDEV ( error ) ;
2653
2672
captureCommitPhaseError ( fiber , fiber . return , error ) ;
@@ -2675,6 +2694,7 @@ function commitPassiveMountOnFiber(
2675
2694
finishedRoot : FiberRoot ,
2676
2695
finishedWork : Fiber ,
2677
2696
committedLanes : Lanes ,
2697
+ committedTransitions : Array < Transition > | null ,
2678
2698
) : void {
2679
2699
switch ( finishedWork . tag ) {
2680
2700
case FunctionComponent :
0 commit comments