File tree Expand file tree Collapse file tree 4 files changed +2
-28
lines changed
packages/react-reconciler/src Expand file tree Collapse file tree 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 {
767767 hookTypesUpdateIndexDev = - 1 ;
768768
769769 currentHookNameInDev = null ;
770-
771- isUpdatingOpaqueValueInRenderPhase = false ;
772770 }
773771
774772 didScheduleRenderPhaseUpdateDuringThisPass = false ;
@@ -2380,13 +2378,6 @@ function rerenderTransition(): [
23802378 return [ isPending , start ] ;
23812379}
23822380
2383- let isUpdatingOpaqueValueInRenderPhase = false ;
2384- export function getIsUpdatingOpaqueValueInRenderPhaseInDEV ( ) : boolean | void {
2385- if ( __DEV__ ) {
2386- return isUpdatingOpaqueValueInRenderPhase ;
2387- }
2388- }
2389-
23902381function mountId ( ) : string {
23912382 const hook = mountWorkInProgressHook ( ) ;
23922383
Original file line number Diff line number Diff line change @@ -767,8 +767,6 @@ export function resetHooksAfterThrow(): void {
767767 hookTypesUpdateIndexDev = - 1 ;
768768
769769 currentHookNameInDev = null ;
770-
771- isUpdatingOpaqueValueInRenderPhase = false ;
772770 }
773771
774772 didScheduleRenderPhaseUpdateDuringThisPass = false ;
@@ -2380,13 +2378,6 @@ function rerenderTransition(): [
23802378 return [ isPending , start ] ;
23812379}
23822380
2383- let isUpdatingOpaqueValueInRenderPhase = false ;
2384- export function getIsUpdatingOpaqueValueInRenderPhaseInDEV ( ) : boolean | void {
2385- if ( __DEV__ ) {
2386- return isUpdatingOpaqueValueInRenderPhase ;
2387- }
2388- }
2389-
23902381function mountId ( ) : string {
23912382 const hook = mountWorkInProgressHook ( ) ;
23922383
Original file line number Diff line number Diff line change @@ -205,7 +205,6 @@ import {resetContextDependencies} from './ReactFiberNewContext.new';
205205import {
206206 resetHooksAfterThrow ,
207207 ContextOnlyDispatcher ,
208- getIsUpdatingOpaqueValueInRenderPhaseInDEV ,
209208} from './ReactFiberHooks.new' ;
210209import { DefaultCacheDispatcher } from './ReactFiberCache.new' ;
211210import {
@@ -3638,10 +3637,7 @@ if (__DEV__) {
36383637
36393638function warnAboutRenderPhaseUpdatesInDEV ( fiber ) {
36403639 if ( __DEV__ ) {
3641- if (
3642- ReactCurrentDebugFiberIsRenderingInDEV &&
3643- ! getIsUpdatingOpaqueValueInRenderPhaseInDEV ( )
3644- ) {
3640+ if ( ReactCurrentDebugFiberIsRenderingInDEV ) {
36453641 switch ( fiber . tag ) {
36463642 case FunctionComponent :
36473643 case ForwardRef :
Original file line number Diff line number Diff line change @@ -205,7 +205,6 @@ import {resetContextDependencies} from './ReactFiberNewContext.old';
205205import {
206206 resetHooksAfterThrow ,
207207 ContextOnlyDispatcher ,
208- getIsUpdatingOpaqueValueInRenderPhaseInDEV ,
209208} from './ReactFiberHooks.old' ;
210209import { DefaultCacheDispatcher } from './ReactFiberCache.old' ;
211210import {
@@ -3638,10 +3637,7 @@ if (__DEV__) {
36383637
36393638function warnAboutRenderPhaseUpdatesInDEV ( fiber ) {
36403639 if ( __DEV__ ) {
3641- if (
3642- ReactCurrentDebugFiberIsRenderingInDEV &&
3643- ! getIsUpdatingOpaqueValueInRenderPhaseInDEV ( )
3644- ) {
3640+ if ( ReactCurrentDebugFiberIsRenderingInDEV ) {
36453641 switch ( fiber . tag ) {
36463642 case FunctionComponent :
36473643 case ForwardRef :
You can’t perform that action at this time.
0 commit comments