@@ -63,7 +63,6 @@ import {
63
63
warnIfNotCurrentlyActingEffectsInDEV ,
64
64
warnIfNotCurrentlyActingUpdatesInDev ,
65
65
warnIfNotScopedWithMatchingAct ,
66
- markRenderEventTimeAndConfig ,
67
66
markSkippedUpdateLanes ,
68
67
} from './ReactFiberWorkLoop.new' ;
69
68
@@ -97,11 +96,7 @@ import {markStateUpdateScheduled} from './SchedulingProfiler';
97
96
const { ReactCurrentDispatcher, ReactCurrentBatchConfig} = ReactSharedInternals ;
98
97
99
98
type Update < S , A > = { |
100
- // TODO: Temporary field. Will remove this by storing a map of
101
- // transition -> start time on the root.
102
- eventTime : number ,
103
99
lane : Lane ,
104
- suspenseConfig : null | SuspenseConfig ,
105
100
action : A ,
106
101
eagerReducer : ( ( S , A ) => S ) | null ,
107
102
eagerState : S | null ,
@@ -715,17 +710,13 @@ function updateReducer<S, I, A>(
715
710
let newBaseQueueLast = null ;
716
711
let update = first ;
717
712
do {
718
- const suspenseConfig = update . suspenseConfig ;
719
713
const updateLane = update . lane ;
720
- const updateEventTime = update . eventTime ;
721
714
if ( ! isSubsetOfLanes ( renderLanes , updateLane ) ) {
722
715
// Priority is insufficient. Skip this update. If this is the first
723
716
// skipped update, the previous update/state is the new base
724
717
// update/state.
725
718
const clone : Update < S , A > = {
726
- eventTime : updateEventTime ,
727
719
lane : updateLane ,
728
- suspenseConfig : suspenseConfig ,
729
720
action : update . action ,
730
721
eagerReducer : update . eagerReducer ,
731
722
eagerState : update . eagerState ,
@@ -750,12 +741,10 @@ function updateReducer<S, I, A>(
750
741
751
742
if ( newBaseQueueLast !== null ) {
752
743
const clone : Update < S , A > = {
753
- eventTime : updateEventTime ,
754
744
// This update is going to be committed so we never want uncommit
755
745
// it. Using NoLane works because 0 is a subset of all bitmasks, so
756
746
// this will never be skipped by the check above.
757
747
lane : NoLane ,
758
- suspenseConfig : update . suspenseConfig ,
759
748
action : update . action ,
760
749
eagerReducer : update . eagerReducer ,
761
750
eagerState : update . eagerState ,
@@ -764,14 +753,6 @@ function updateReducer<S, I, A>(
764
753
newBaseQueueLast = newBaseQueueLast . next = clone ;
765
754
}
766
755
767
- // Mark the event time of this update as relevant to this render pass.
768
- // TODO: This should ideally use the true event time of this update rather than
769
- // its priority which is a derived and not reverseable value.
770
- // TODO: We should skip this update if it was already committed but currently
771
- // we have no way of detecting the difference between a committed and suspended
772
- // update here.
773
- markRenderEventTimeAndConfig(updateEventTime, suspenseConfig);
774
-
775
756
// Process this update.
776
757
if (update.eagerReducer === reducer) {
777
758
// If this update was processed eagerly, and its reducer matches the
@@ -1708,9 +1689,7 @@ function dispatchAction<S, A>(
1708
1689
const lane = requestUpdateLane ( fiber , suspenseConfig ) ;
1709
1690
1710
1691
const update : Update < S , A > = {
1711
- eventTime ,
1712
1692
lane ,
1713
- suspenseConfig ,
1714
1693
action ,
1715
1694
eagerReducer : null ,
1716
1695
eagerState : null ,
0 commit comments