99
1010import type { Dispatcher } from 'react-reconciler/src/ReactInternalTypes' ;
1111import type { AsyncDispatcher } from 'react-reconciler/src/ReactInternalTypes' ;
12- import type { ReactComponentInfo } from 'shared/ReactTypes' ;
1312
1413import type {
1514 Reference ,
@@ -24,7 +23,7 @@ import {
2423 TaintRegistryPendingRequests ,
2524} from './ReactTaintRegistry' ;
2625
27- import { disableStringRefs , enableTaint } from 'shared/ReactFeatureFlags' ;
26+ import { enableTaint } from 'shared/ReactFeatureFlags' ;
2827
2928export type SharedStateServer = {
3029 H : null | Dispatcher , // ReactCurrentDispatcher for Hooks
@@ -36,8 +35,7 @@ export type SharedStateServer = {
3635 TaintRegistryByteLengths : Set < number > ,
3736 TaintRegistryPendingRequests : Set < RequestCleanupQueue > ,
3837
39- // DEV-only-ish
40- owner : null | ReactComponentInfo , // ReactCurrentOwner is ReactComponentInfo in Flight, null in Fizz. Fiber/Fizz uses SharedStateClient.
38+ // DEV-only
4139
4240 // ReactDebugCurrentFrame
4341 setExtraStackFrame : ( stack : null | string ) => void ,
@@ -60,10 +58,6 @@ if (enableTaint) {
6058 TaintRegistryPendingRequests ;
6159}
6260
63- if ( __DEV__ || ! disableStringRefs ) {
64- ReactSharedInternals . owner = null ;
65- }
66-
6761if ( __DEV__ ) {
6862 let currentExtraStackFrame = ( null : null | string ) ;
6963 ReactSharedInternals . setExtraStackFrame = function ( stack : null | string ) {
0 commit comments