@@ -70,7 +70,6 @@ import {
7070} from './ReactCurrentFiber' ;
7171import { StrictMode } from './ReactTypeOfMode' ;
7272import { Sync } from './ReactFiberExpirationTime' ;
73- import { revertPassiveEffectsChange } from 'shared/ReactFeatureFlags' ;
7473import { requestCurrentSuspenseConfig } from './ReactFiberSuspenseConfig' ;
7574import {
7675 scheduleRefresh ,
@@ -167,9 +166,6 @@ function scheduleRootUpdate(
167166 update . callback = callback ;
168167 }
169168
170- if ( revertPassiveEffectsChange ) {
171- flushPassiveEffects ( ) ;
172- }
173169 enqueueUpdate ( current , update ) ;
174170 scheduleWork ( current , expirationTime ) ;
175171
@@ -434,10 +430,6 @@ if (__DEV__) {
434430 id -- ;
435431 }
436432 if ( currentHook !== null ) {
437- if ( revertPassiveEffectsChange ) {
438- flushPassiveEffects ( ) ;
439- }
440-
441433 const newState = copyWithSet ( currentHook . memoizedState , path , value ) ;
442434 currentHook . memoizedState = newState ;
443435 currentHook . baseState = newState ;
@@ -455,9 +447,6 @@ if (__DEV__) {
455447
456448 // Support DevTools props for function components, forwardRef, memo, host components, etc.
457449 overrideProps = ( fiber : Fiber , path : Array < string | number > , value : any ) => {
458- if ( revertPassiveEffectsChange ) {
459- flushPassiveEffects ( ) ;
460- }
461450 fiber . pendingProps = copyWithSet ( fiber . memoizedProps , path , value ) ;
462451 if ( fiber . alternate ) {
463452 fiber . alternate . pendingProps = fiber . pendingProps ;
@@ -466,9 +455,6 @@ if (__DEV__) {
466455 } ;
467456
468457 scheduleUpdate = ( fiber : Fiber ) => {
469- if ( revertPassiveEffectsChange ) {
470- flushPassiveEffects ( ) ;
471- }
472458 scheduleWork ( fiber , Sync ) ;
473459 } ;
474460
0 commit comments