@@ -218,10 +218,12 @@ export function attach(
218
218
const internalInstance = args [ 0 ] ;
219
219
const hostContainerInfo = args [ 3 ] ;
220
220
if ( getElementType ( internalInstance ) === ElementTypeOtherOrUnknown ) {
221
+ // $FlowFixMe[object-this-reference] found when upgrading Flow
221
222
return fn . apply ( this , args ) ;
222
223
}
223
224
if ( hostContainerInfo . _topLevelWrapper === undefined ) {
224
225
// SSR
226
+ // $FlowFixMe[object-this-reference] found when upgrading Flow
225
227
return fn . apply ( this , args ) ;
226
228
}
227
229
@@ -241,6 +243,7 @@ export function attach(
241
243
) ;
242
244
243
245
try {
246
+ // $FlowFixMe[object-this-reference] found when upgrading Flow
244
247
const result = fn . apply ( this , args ) ;
245
248
parentIDStack . pop ( ) ;
246
249
return result ;
@@ -260,6 +263,7 @@ export function attach(
260
263
performUpdateIfNecessary ( fn , args ) {
261
264
const internalInstance = args [ 0 ] ;
262
265
if ( getElementType ( internalInstance ) === ElementTypeOtherOrUnknown ) {
266
+ // $FlowFixMe[object-this-reference] found when upgrading Flow
263
267
return fn . apply ( this , args ) ;
264
268
}
265
269
@@ -268,6 +272,7 @@ export function attach(
268
272
269
273
const prevChildren = getChildren ( internalInstance ) ;
270
274
try {
275
+ // $FlowFixMe[object-this-reference] found when upgrading Flow
271
276
const result = fn . apply ( this , args ) ;
272
277
273
278
const nextChildren = getChildren ( internalInstance ) ;
@@ -294,6 +299,7 @@ export function attach(
294
299
receiveComponent ( fn , args ) {
295
300
const internalInstance = args [ 0 ] ;
296
301
if ( getElementType ( internalInstance ) === ElementTypeOtherOrUnknown ) {
302
+ // $FlowFixMe[object-this-reference] found when upgrading Flow
297
303
return fn . apply ( this , args ) ;
298
304
}
299
305
@@ -302,6 +308,7 @@ export function attach(
302
308
303
309
const prevChildren = getChildren ( internalInstance ) ;
304
310
try {
311
+ // $FlowFixMe[object-this-reference] found when upgrading Flow
305
312
const result = fn . apply ( this , args ) ;
306
313
307
314
const nextChildren = getChildren ( internalInstance ) ;
@@ -328,12 +335,14 @@ export function attach(
328
335
unmountComponent ( fn , args ) {
329
336
const internalInstance = args [ 0 ] ;
330
337
if ( getElementType ( internalInstance ) === ElementTypeOtherOrUnknown ) {
338
+ // $FlowFixMe[object-this-reference] found when upgrading Flow
331
339
return fn . apply ( this , args ) ;
332
340
}
333
341
334
342
const id = getID ( internalInstance ) ;
335
343
parentIDStack . push ( id ) ;
336
344
try {
345
+ // $FlowFixMe[object-this-reference] found when upgrading Flow
337
346
const result = fn . apply ( this , args ) ;
338
347
parentIDStack . pop ( ) ;
339
348
0 commit comments