@@ -63,7 +63,6 @@ import {
6363 warnIfNotCurrentlyActingEffectsInDEV ,
6464 warnIfNotCurrentlyActingUpdatesInDev ,
6565 warnIfNotScopedWithMatchingAct ,
66- markRenderEventTimeAndConfig ,
6766 markSkippedUpdateLanes ,
6867} from './ReactFiberWorkLoop.new' ;
6968
@@ -97,11 +96,7 @@ import {markStateUpdateScheduled} from './SchedulingProfiler';
9796const { ReactCurrentDispatcher, ReactCurrentBatchConfig} = ReactSharedInternals ;
9897
9998type 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 ,
10399 lane : Lane ,
104- suspenseConfig : null | SuspenseConfig ,
105100 action : A ,
106101 eagerReducer : ( ( S , A ) => S ) | null ,
107102 eagerState : S | null ,
@@ -715,17 +710,13 @@ function updateReducer<S, I, A>(
715710 let newBaseQueueLast = null ;
716711 let update = first ;
717712 do {
718- const suspenseConfig = update . suspenseConfig ;
719713 const updateLane = update . lane ;
720- const updateEventTime = update . eventTime ;
721714 if ( ! isSubsetOfLanes ( renderLanes , updateLane ) ) {
722715 // Priority is insufficient. Skip this update. If this is the first
723716 // skipped update, the previous update/state is the new base
724717 // update/state.
725718 const clone : Update < S , A > = {
726- eventTime : updateEventTime ,
727719 lane : updateLane ,
728- suspenseConfig : suspenseConfig ,
729720 action : update . action ,
730721 eagerReducer : update . eagerReducer ,
731722 eagerState : update . eagerState ,
@@ -750,12 +741,10 @@ function updateReducer<S, I, A>(
750741
751742 if ( newBaseQueueLast !== null ) {
752743 const clone : Update < S , A > = {
753- eventTime : updateEventTime ,
754744 // This update is going to be committed so we never want uncommit
755745 // it. Using NoLane works because 0 is a subset of all bitmasks, so
756746 // this will never be skipped by the check above.
757747 lane : NoLane ,
758- suspenseConfig : update . suspenseConfig ,
759748 action : update . action ,
760749 eagerReducer : update . eagerReducer ,
761750 eagerState : update . eagerState ,
@@ -764,14 +753,6 @@ function updateReducer<S, I, A>(
764753 newBaseQueueLast = newBaseQueueLast . next = clone ;
765754 }
766755
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-
775756 // Process this update.
776757 if (update.eagerReducer === reducer) {
777758 // If this update was processed eagerly, and its reducer matches the
@@ -1708,9 +1689,7 @@ function dispatchAction<S, A>(
17081689 const lane = requestUpdateLane ( fiber , suspenseConfig ) ;
17091690
17101691 const update : Update < S , A > = {
1711- eventTime ,
17121692 lane ,
1713- suspenseConfig ,
17141693 action ,
17151694 eagerReducer : null ,
17161695 eagerState : null ,
0 commit comments