@@ -24,7 +24,7 @@ import {enableUseEffectCRUDOverload} from 'shared/ReactFeatureFlags';
24
24
// TODO: Consider marking the whole bundle instead of these boundaries.
25
25
26
26
const callComponent = {
27
- 'react-stack-bottom-frame' : function < Props , Arg , R > (
27
+ react_stack_bottom_frame : function < Props , Arg , R > (
28
28
Component : ( p : Props , arg : Arg ) = > R ,
29
29
props : Props ,
30
30
secondArg : Arg ,
@@ -46,7 +46,7 @@ export const callComponentInDEV: <Props, Arg, R>(
46
46
secondArg : Arg ,
47
47
) => R = __DEV__
48
48
? // We use this technique to trick minifiers to preserve the function name.
49
- ( callComponent [ 'react-stack-bottom-frame' ] . bind ( callComponent ) : any )
49
+ ( callComponent . react_stack_bottom_frame . bind ( callComponent ) : any )
50
50
: ( null : any ) ;
51
51
52
52
interface ClassInstance < R > {
@@ -62,7 +62,7 @@ interface ClassInstance<R> {
62
62
}
63
63
64
64
const callRender = {
65
- 'react-stack-bottom-frame' : function < R > (instance: ClassInstance< R > ): R {
65
+ react_stack_bottom_frame : function < R > (instance: ClassInstance< R > ): R {
66
66
const wasRendering = isRendering ;
67
67
setIsRendering ( true ) ;
68
68
try {
@@ -77,11 +77,11 @@ const callRender = {
77
77
export const callRenderInDEV : < R > (instance: ClassInstance< R > ) => R => R =
78
78
__DEV__
79
79
? // We use this technique to trick minifiers to preserve the function name.
80
- ( callRender [ 'react-stack-bottom-frame' ] . bind ( callRender ) : any )
80
+ ( callRender . react_stack_bottom_frame . bind ( callRender ) : any )
81
81
: ( null : any ) ;
82
82
83
83
const callComponentDidMount = {
84
- 'react-stack-bottom-frame' : function (
84
+ react_stack_bottom_frame : function (
85
85
finishedWork : Fiber ,
86
86
instance : ClassInstance < any > ,
87
87
) : void {
@@ -98,13 +98,13 @@ export const callComponentDidMountInDEV: (
98
98
instance : ClassInstance < any > ,
99
99
) => void = __DEV__
100
100
? // We use this technique to trick minifiers to preserve the function name.
101
- ( callComponentDidMount [ 'react-stack-bottom-frame' ] . bind (
101
+ ( callComponentDidMount . react_stack_bottom_frame . bind (
102
102
callComponentDidMount ,
103
103
) : any )
104
104
: ( null : any ) ;
105
105
106
106
const callComponentDidUpdate = {
107
- 'react-stack-bottom-frame' : function (
107
+ react_stack_bottom_frame : function (
108
108
finishedWork : Fiber ,
109
109
instance : ClassInstance < any > ,
110
110
prevProps : Object ,
@@ -127,13 +127,13 @@ export const callComponentDidUpdateInDEV: (
127
127
snaphot : Object ,
128
128
) => void = __DEV__
129
129
? // We use this technique to trick minifiers to preserve the function name.
130
- ( callComponentDidUpdate [ 'react-stack-bottom-frame' ] . bind (
130
+ ( callComponentDidUpdate . react_stack_bottom_frame . bind (
131
131
callComponentDidUpdate ,
132
132
) : any )
133
133
: ( null : any ) ;
134
134
135
135
const callComponentDidCatch = {
136
- 'react-stack-bottom-frame' : function (
136
+ react_stack_bottom_frame : function (
137
137
instance : ClassInstance < any > ,
138
138
errorInfo : CapturedValue < mixed > ,
139
139
) : void {
@@ -150,13 +150,13 @@ export const callComponentDidCatchInDEV: (
150
150
errorInfo : CapturedValue < mixed > ,
151
151
) => void = __DEV__
152
152
? // We use this technique to trick minifiers to preserve the function name.
153
- ( callComponentDidCatch [ 'react-stack-bottom-frame' ] . bind (
153
+ ( callComponentDidCatch . react_stack_bottom_frame . bind (
154
154
callComponentDidCatch ,
155
155
) : any )
156
156
: ( null : any ) ;
157
157
158
158
const callComponentWillUnmount = {
159
- 'react-stack-bottom-frame' : function (
159
+ react_stack_bottom_frame : function (
160
160
current : Fiber ,
161
161
nearestMountedAncestor : Fiber | null ,
162
162
instance : ClassInstance < any > ,
@@ -175,13 +175,13 @@ export const callComponentWillUnmountInDEV: (
175
175
instance : ClassInstance < any > ,
176
176
) => void = __DEV__
177
177
? // We use this technique to trick minifiers to preserve the function name.
178
- ( callComponentWillUnmount [ 'react-stack-bottom-frame' ] . bind (
178
+ ( callComponentWillUnmount . react_stack_bottom_frame . bind (
179
179
callComponentWillUnmount ,
180
180
) : any )
181
181
: ( null : any ) ;
182
182
183
183
const callCreate = {
184
- 'react-stack-bottom-frame' : function (
184
+ react_stack_bottom_frame : function (
185
185
effect : Effect ,
186
186
) : ( ( ) => void ) | { ...} | void | null {
187
187
if ( ! enableUseEffectCRUDOverload ) {
@@ -234,11 +234,11 @@ const callCreate = {
234
234
235
235
export const callCreateInDEV : ( effect : Effect ) = > ( ( ) => void ) | void = __DEV__
236
236
? // We use this technique to trick minifiers to preserve the function name.
237
- ( callCreate [ 'react-stack-bottom-frame' ] . bind ( callCreate ) : any )
237
+ ( callCreate . react_stack_bottom_frame . bind ( callCreate ) : any )
238
238
: ( null : any ) ;
239
239
240
240
const callDestroy = {
241
- 'react-stack-bottom-frame' : function (
241
+ react_stack_bottom_frame : function (
242
242
current : Fiber ,
243
243
nearestMountedAncestor : Fiber | null ,
244
244
destroy : ( ) => void ,
@@ -257,11 +257,11 @@ export const callDestroyInDEV: (
257
257
destroy : ( ( ) => void ) | ( ( { ...} ) => void ) ,
258
258
) = > void = __DEV__
259
259
? // We use this technique to trick minifiers to preserve the function name.
260
- ( callDestroy [ 'react-stack-bottom-frame' ] . bind ( callDestroy ) : any )
260
+ ( callDestroy . react_stack_bottom_frame . bind ( callDestroy ) : any )
261
261
: ( null : any ) ;
262
262
263
263
const callLazyInit = {
264
- 'react-stack-bottom-frame' : function ( lazy : LazyComponent < any , any > ) : any {
264
+ react_stack_bottom_frame : function ( lazy : LazyComponent < any , any > ) : any {
265
265
const payload = lazy . _payload ;
266
266
const init = lazy . _init ;
267
267
return init ( payload ) ;
@@ -270,5 +270,5 @@ const callLazyInit = {
270
270
271
271
export const callLazyInitInDEV : ( lazy : LazyComponent < any , any > ) => any = __DEV__
272
272
? // We use this technique to trick minifiers to preserve the function name.
273
- ( callLazyInit [ 'react-stack-bottom-frame' ] . bind ( callLazyInit ) : any )
273
+ ( callLazyInit . react_stack_bottom_frame . bind ( callLazyInit ) : any )
274
274
: ( null : any ) ;
0 commit comments