@@ -24,7 +24,7 @@ import {enableUseEffectCRUDOverload} from 'shared/ReactFeatureFlags';
2424// TODO: Consider marking the whole bundle instead of these boundaries.
2525
2626const callComponent = {
27- 'react-stack-bottom-frame' : function < Props , Arg , R > (
27+ react_stack_bottom_frame : function < Props , Arg , R > (
2828 Component : ( p : Props , arg : Arg ) = > R ,
2929 props : Props ,
3030 secondArg : Arg ,
@@ -46,7 +46,7 @@ export const callComponentInDEV: <Props, Arg, R>(
4646 secondArg : Arg ,
4747) => R = __DEV__
4848 ? // 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 )
5050 : ( null : any ) ;
5151
5252interface ClassInstance < R > {
@@ -62,7 +62,7 @@ interface ClassInstance<R> {
6262}
6363
6464const callRender = {
65- 'react-stack-bottom-frame' : function < R > (instance: ClassInstance< R > ): R {
65+ react_stack_bottom_frame : function < R > (instance: ClassInstance< R > ): R {
6666 const wasRendering = isRendering ;
6767 setIsRendering ( true ) ;
6868 try {
@@ -77,11 +77,11 @@ const callRender = {
7777export const callRenderInDEV : < R > (instance: ClassInstance< R > ) => R => R =
7878 __DEV__
7979 ? // 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 )
8181 : ( null : any ) ;
8282
8383const callComponentDidMount = {
84- 'react-stack-bottom-frame' : function (
84+ react_stack_bottom_frame : function (
8585 finishedWork : Fiber ,
8686 instance : ClassInstance < any > ,
8787 ) : void {
@@ -98,13 +98,13 @@ export const callComponentDidMountInDEV: (
9898 instance : ClassInstance < any > ,
9999) => void = __DEV__
100100 ? // 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 (
102102 callComponentDidMount ,
103103 ) : any )
104104 : ( null : any ) ;
105105
106106const callComponentDidUpdate = {
107- 'react-stack-bottom-frame' : function (
107+ react_stack_bottom_frame : function (
108108 finishedWork : Fiber ,
109109 instance : ClassInstance < any > ,
110110 prevProps : Object ,
@@ -127,13 +127,13 @@ export const callComponentDidUpdateInDEV: (
127127 snaphot : Object ,
128128) => void = __DEV__
129129 ? // 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 (
131131 callComponentDidUpdate ,
132132 ) : any )
133133 : ( null : any ) ;
134134
135135const callComponentDidCatch = {
136- 'react-stack-bottom-frame' : function (
136+ react_stack_bottom_frame : function (
137137 instance : ClassInstance < any > ,
138138 errorInfo : CapturedValue < mixed > ,
139139 ) : void {
@@ -150,13 +150,13 @@ export const callComponentDidCatchInDEV: (
150150 errorInfo : CapturedValue < mixed > ,
151151) => void = __DEV__
152152 ? // 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 (
154154 callComponentDidCatch ,
155155 ) : any )
156156 : ( null : any ) ;
157157
158158const callComponentWillUnmount = {
159- 'react-stack-bottom-frame' : function (
159+ react_stack_bottom_frame : function (
160160 current : Fiber ,
161161 nearestMountedAncestor : Fiber | null ,
162162 instance : ClassInstance < any > ,
@@ -175,13 +175,13 @@ export const callComponentWillUnmountInDEV: (
175175 instance : ClassInstance < any > ,
176176) => void = __DEV__
177177 ? // 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 (
179179 callComponentWillUnmount ,
180180 ) : any )
181181 : ( null : any ) ;
182182
183183const callCreate = {
184- 'react-stack-bottom-frame' : function (
184+ react_stack_bottom_frame : function (
185185 effect : Effect ,
186186 ) : ( ( ) => void ) | { ...} | void | null {
187187 if ( ! enableUseEffectCRUDOverload ) {
@@ -234,11 +234,11 @@ const callCreate = {
234234
235235export const callCreateInDEV : ( effect : Effect ) = > ( ( ) => void ) | void = __DEV__
236236 ? // 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 )
238238 : ( null : any ) ;
239239
240240const callDestroy = {
241- 'react-stack-bottom-frame' : function (
241+ react_stack_bottom_frame : function (
242242 current : Fiber ,
243243 nearestMountedAncestor : Fiber | null ,
244244 destroy : ( ) => void ,
@@ -257,11 +257,11 @@ export const callDestroyInDEV: (
257257 destroy : ( ( ) => void ) | ( ( { ...} ) => void ) ,
258258) = > void = __DEV__
259259 ? // 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 )
261261 : ( null : any ) ;
262262
263263const callLazyInit = {
264- 'react-stack-bottom-frame' : function ( lazy : LazyComponent < any , any > ) : any {
264+ react_stack_bottom_frame : function ( lazy : LazyComponent < any , any > ) : any {
265265 const payload = lazy . _payload ;
266266 const init = lazy . _init ;
267267 return init ( payload ) ;
@@ -270,5 +270,5 @@ const callLazyInit = {
270270
271271export const callLazyInitInDEV : ( lazy : LazyComponent < any , any > ) => any = __DEV__
272272 ? // 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 )
274274 : ( null : any ) ;
0 commit comments