@@ -287,7 +287,6 @@ describe('ReactFabric', () => {
287
287
expect ( nativeFabricUIManager . completeRoot ) . toBeCalled ( ) ;
288
288
} ) ;
289
289
290
- // @gate enablePersistedModeClonedFlag
291
290
it ( 'should not clone nodes when layout effects are used' , async ( ) => {
292
291
const View = createReactNativeComponentClass ( 'RCTView' , ( ) => ( {
293
292
validAttributes : { foo : true } ,
@@ -305,6 +304,8 @@ describe('ReactFabric', () => {
305
304
< ComponentWithEffect />
306
305
</ View > ,
307
306
11 ,
307
+ null ,
308
+ true ,
308
309
) ,
309
310
) ;
310
311
expect ( nativeFabricUIManager . completeRoot ) . toBeCalled ( ) ;
@@ -316,6 +317,8 @@ describe('ReactFabric', () => {
316
317
< ComponentWithEffect />
317
318
</ View > ,
318
319
11 ,
320
+ null ,
321
+ true ,
319
322
) ,
320
323
) ;
321
324
expect ( nativeFabricUIManager . cloneNode ) . not . toBeCalled ( ) ;
@@ -327,7 +330,6 @@ describe('ReactFabric', () => {
327
330
expect ( nativeFabricUIManager . completeRoot ) . not . toBeCalled ( ) ;
328
331
} ) ;
329
332
330
- // @gate enablePersistedModeClonedFlag
331
333
it ( 'should not clone nodes when insertion effects are used' , async ( ) => {
332
334
const View = createReactNativeComponentClass ( 'RCTView' , ( ) => ( {
333
335
validAttributes : { foo : true } ,
@@ -345,6 +347,8 @@ describe('ReactFabric', () => {
345
347
< ComponentWithRef />
346
348
</ View > ,
347
349
11 ,
350
+ null ,
351
+ true ,
348
352
) ,
349
353
) ;
350
354
expect ( nativeFabricUIManager . completeRoot ) . toBeCalled ( ) ;
@@ -356,6 +360,8 @@ describe('ReactFabric', () => {
356
360
< ComponentWithRef />
357
361
</ View > ,
358
362
11 ,
363
+ null ,
364
+ true ,
359
365
) ,
360
366
) ;
361
367
expect ( nativeFabricUIManager . cloneNode ) . not . toBeCalled ( ) ;
@@ -367,7 +373,6 @@ describe('ReactFabric', () => {
367
373
expect ( nativeFabricUIManager . completeRoot ) . not . toBeCalled ( ) ;
368
374
} ) ;
369
375
370
- // @gate enablePersistedModeClonedFlag
371
376
it ( 'should not clone nodes when useImperativeHandle is used' , async ( ) => {
372
377
const View = createReactNativeComponentClass ( 'RCTView' , ( ) => ( {
373
378
validAttributes : { foo : true } ,
@@ -387,6 +392,8 @@ describe('ReactFabric', () => {
387
392
< ComponentWithImperativeHandle ref = { ref } />
388
393
</ View > ,
389
394
11 ,
395
+ null ,
396
+ true ,
390
397
) ,
391
398
) ;
392
399
expect ( nativeFabricUIManager . completeRoot ) . toBeCalled ( ) ;
@@ -399,6 +406,8 @@ describe('ReactFabric', () => {
399
406
< ComponentWithImperativeHandle ref = { ref } />
400
407
</ View > ,
401
408
11 ,
409
+ null ,
410
+ true ,
402
411
) ,
403
412
) ;
404
413
expect ( nativeFabricUIManager . cloneNode ) . not . toBeCalled ( ) ;
0 commit comments