Commit 2ac77aa 1 parent bdd3d08 commit 2ac77aa Copy full SHA for 2ac77aa
File tree 4 files changed +2
-28
lines changed
packages/react-reconciler/src
4 files changed +2
-28
lines changed Original file line number Diff line number Diff line change @@ -767,8 +767,6 @@ export function resetHooksAfterThrow(): void {
767
767
hookTypesUpdateIndexDev = - 1 ;
768
768
769
769
currentHookNameInDev = null ;
770
-
771
- isUpdatingOpaqueValueInRenderPhase = false ;
772
770
}
773
771
774
772
didScheduleRenderPhaseUpdateDuringThisPass = false ;
@@ -2380,13 +2378,6 @@ function rerenderTransition(): [
2380
2378
return [ isPending , start ] ;
2381
2379
}
2382
2380
2383
- let isUpdatingOpaqueValueInRenderPhase = false ;
2384
- export function getIsUpdatingOpaqueValueInRenderPhaseInDEV ( ) : boolean | void {
2385
- if ( __DEV__ ) {
2386
- return isUpdatingOpaqueValueInRenderPhase ;
2387
- }
2388
- }
2389
-
2390
2381
function mountId ( ) : string {
2391
2382
const hook = mountWorkInProgressHook ( ) ;
2392
2383
Original file line number Diff line number Diff line change @@ -767,8 +767,6 @@ export function resetHooksAfterThrow(): void {
767
767
hookTypesUpdateIndexDev = - 1 ;
768
768
769
769
currentHookNameInDev = null ;
770
-
771
- isUpdatingOpaqueValueInRenderPhase = false ;
772
770
}
773
771
774
772
didScheduleRenderPhaseUpdateDuringThisPass = false ;
@@ -2380,13 +2378,6 @@ function rerenderTransition(): [
2380
2378
return [ isPending , start ] ;
2381
2379
}
2382
2380
2383
- let isUpdatingOpaqueValueInRenderPhase = false ;
2384
- export function getIsUpdatingOpaqueValueInRenderPhaseInDEV ( ) : boolean | void {
2385
- if ( __DEV__ ) {
2386
- return isUpdatingOpaqueValueInRenderPhase ;
2387
- }
2388
- }
2389
-
2390
2381
function mountId ( ) : string {
2391
2382
const hook = mountWorkInProgressHook ( ) ;
2392
2383
Original file line number Diff line number Diff line change @@ -205,7 +205,6 @@ import {resetContextDependencies} from './ReactFiberNewContext.new';
205
205
import {
206
206
resetHooksAfterThrow ,
207
207
ContextOnlyDispatcher ,
208
- getIsUpdatingOpaqueValueInRenderPhaseInDEV ,
209
208
} from './ReactFiberHooks.new' ;
210
209
import { DefaultCacheDispatcher } from './ReactFiberCache.new' ;
211
210
import {
@@ -3638,10 +3637,7 @@ if (__DEV__) {
3638
3637
3639
3638
function warnAboutRenderPhaseUpdatesInDEV ( fiber ) {
3640
3639
if ( __DEV__ ) {
3641
- if (
3642
- ReactCurrentDebugFiberIsRenderingInDEV &&
3643
- ! getIsUpdatingOpaqueValueInRenderPhaseInDEV ( )
3644
- ) {
3640
+ if ( ReactCurrentDebugFiberIsRenderingInDEV ) {
3645
3641
switch ( fiber . tag ) {
3646
3642
case FunctionComponent :
3647
3643
case ForwardRef :
Original file line number Diff line number Diff line change @@ -205,7 +205,6 @@ import {resetContextDependencies} from './ReactFiberNewContext.old';
205
205
import {
206
206
resetHooksAfterThrow ,
207
207
ContextOnlyDispatcher ,
208
- getIsUpdatingOpaqueValueInRenderPhaseInDEV ,
209
208
} from './ReactFiberHooks.old' ;
210
209
import { DefaultCacheDispatcher } from './ReactFiberCache.old' ;
211
210
import {
@@ -3638,10 +3637,7 @@ if (__DEV__) {
3638
3637
3639
3638
function warnAboutRenderPhaseUpdatesInDEV ( fiber ) {
3640
3639
if ( __DEV__ ) {
3641
- if (
3642
- ReactCurrentDebugFiberIsRenderingInDEV &&
3643
- ! getIsUpdatingOpaqueValueInRenderPhaseInDEV ( )
3644
- ) {
3640
+ if ( ReactCurrentDebugFiberIsRenderingInDEV ) {
3645
3641
switch ( fiber . tag ) {
3646
3642
case FunctionComponent :
3647
3643
case ForwardRef :
You can’t perform that action at this time.
0 commit comments