@@ -96,11 +96,7 @@ import {markStateUpdateScheduled} from './SchedulingProfiler';
96
96
const { ReactCurrentDispatcher, ReactCurrentBatchConfig} = ReactSharedInternals ;
97
97
98
98
type Update < S , A > = { |
99
- // TODO: Temporary field. Will remove this by storing a map of
100
- // transition -> start time on the root.
101
- eventTime : number ,
102
99
lane : Lane ,
103
- suspenseConfig : null | SuspenseConfig ,
104
100
action : A ,
105
101
eagerReducer : ( ( S , A ) => S ) | null ,
106
102
eagerState : S | null ,
@@ -714,17 +710,13 @@ function updateReducer<S, I, A>(
714
710
let newBaseQueueLast = null ;
715
711
let update = first ;
716
712
do {
717
- const suspenseConfig = update . suspenseConfig ;
718
713
const updateLane = update . lane ;
719
- const updateEventTime = update . eventTime ;
720
714
if ( ! isSubsetOfLanes ( renderLanes , updateLane ) ) {
721
715
// Priority is insufficient. Skip this update. If this is the first
722
716
// skipped update, the previous update/state is the new base
723
717
// update/state.
724
718
const clone : Update < S , A > = {
725
- eventTime : updateEventTime ,
726
719
lane : updateLane ,
727
- suspenseConfig : suspenseConfig ,
728
720
action : update . action ,
729
721
eagerReducer : update . eagerReducer ,
730
722
eagerState : update . eagerState ,
@@ -749,12 +741,10 @@ function updateReducer<S, I, A>(
749
741
750
742
if ( newBaseQueueLast !== null ) {
751
743
const clone : Update < S , A > = {
752
- eventTime : updateEventTime ,
753
744
// This update is going to be committed so we never want uncommit
754
745
// it. Using NoLane works because 0 is a subset of all bitmasks, so
755
746
// this will never be skipped by the check above.
756
747
lane : NoLane ,
757
- suspenseConfig : update . suspenseConfig ,
758
748
action : update . action ,
759
749
eagerReducer : update . eagerReducer ,
760
750
eagerState : update . eagerState ,
@@ -1699,9 +1689,7 @@ function dispatchAction<S, A>(
1699
1689
const lane = requestUpdateLane ( fiber , suspenseConfig ) ;
1700
1690
1701
1691
const update : Update < S , A > = {
1702
- eventTime ,
1703
1692
lane ,
1704
- suspenseConfig ,
1705
1693
action ,
1706
1694
eagerReducer : null ,
1707
1695
eagerState : null ,
0 commit comments