99
<LazyText text="Hi" />
100
</Suspense>,
101
{
102
- unstable_isConcurrent: true,
102
+ isConcurrent: true,
103
},
104
);
105
185
<LazyBar />
186
</Suspense>,
187
{
188
- unstable_isConcurrent: true,
188
+ isConcurrent: true,
189
},
190
);
191
208
const LazyText = lazy(async () => Text);
209
210
const root = ReactTestRenderer.create(null, {
211
- unstable_isConcurrent: true,
211
+ isConcurrent: true,
212
});
213
214
let error;
242
});
243
244
const root = ReactTestRenderer.create(null, {
245
- unstable_isConcurrent: true,
245
+ isConcurrent: true,
246
});
247
248
let error;
302
}
303
304
const root = ReactTestRenderer.create(<Parent swap={false} />, {
305
- unstable_isConcurrent: true,
305
+ isConcurrent: true,
306
});
307
308
await waitForAll(['Suspend! [LazyChildA]', 'Loading...']);
337
<LazyText />
338
</Suspense>,
339
{
340
- unstable_isConcurrent: true,
340
+ isConcurrent: true,
341
},
342
);
343
394
</Lazy>
395
</Suspense>,
396
{
397
- unstable_isConcurrent: true,
397
+ isConcurrent: true,
398
},
399
);
400
await waitForAll(['Loading...']);
440
</Suspense>
441
</>,
442
{
443
- unstable_isConcurrent: true,
443
+ isConcurrent: true,
444
},
445
);
446
await waitForAll(['Not lazy: 0', 'Loading...']);
485
</Suspense>
486
</>,
487
{
488
- unstable_isConcurrent: true,
488
+ isConcurrent: true,
489
},
490
);
491
await waitForAll(['Not lazy: 0', 'Loading...']);
561
<LazyClass num={1} />
562
</Suspense>,
563
{
564
- unstable_isConcurrent: true,
564
+ isConcurrent: true,
565
},
566
);
567
691
<LazyText />
692
</Suspense>,
693
{
694
- unstable_isConcurrent: true,
694
+ isConcurrent: true,
695
},
696
);
697
734
<BadLazy />
735
</Suspense>,
736
{
737
- unstable_isConcurrent: true,
737
+ isConcurrent: true,
738
},
739
);
740
761
<Lazy2 text="Hello" />
762
</Suspense>,
763
{
764
- unstable_isConcurrent: true,
764
+ isConcurrent: true,
765
},
766
);
767
815
<LazyAdd inner="2" outer="2" />
816
</Suspense>,
817
{
818
- unstable_isConcurrent: true,
818
+ isConcurrent: true,
819
},
820
);
821
1012
<LazyText />
1013
</Suspense>,
1014
{
1015
- unstable_isConcurrent: true,
1015
+ isConcurrent: true,
1016
},
1017
);
1018
1055
<LazyFoo />
1056
</Suspense>,
1057
{
1058
- unstable_isConcurrent: true,
1058
+ isConcurrent: true,
1059
},
1060
);
1061
1100
<LazyForwardRef ref={ref} />
1101
</Suspense>,
1102
{
1103
- unstable_isConcurrent: true,
1103
+ isConcurrent: true,
1104
},
1105
);
1106
1131
<LazyAdd outer={2} />
1132
</Suspense>,
1133
{
1134
- unstable_isConcurrent: true,
1134
+ isConcurrent: true,
1135
},
1136
);
1137
await waitForAll(['Loading...']);
1218
<LazyAdd outer={2} />
1219
</Suspense>,
1220
{
1221
- unstable_isConcurrent: true,
1221
+ isConcurrent: true,
1222
},
1223
);
1224
await waitForAll(['Loading...']);
1264
<LazyFoo ref={ref} />
1265
</Suspense>,
1266
{
1267
- unstable_isConcurrent: true,
1267
+ isConcurrent: true,
1268
},
1269
);
1270
1304
<LazyText text="Hi" />
1305
</Suspense>
1306
</ErrorBoundary>,
1307
- {unstable_isConcurrent: true},
1307
+ {isConcurrent: true},
1308
);
1309
1310
await waitForAll(['Loading...']);
1412
}
1413
1414
const root = ReactTestRenderer.create(<Parent swap={false} />, {
1415
- unstable_isConcurrent: true,
1415
+ isConcurrent: true,
1416
});
1417
1418
await waitForAll(['Init A', 'Loading...']);
1497
}
1498
1499
const root = ReactTestRenderer.create(<Parent swap={false} />, {
1500
- unstable_isConcurrent: false,
1500
+ isConcurrent: false,
1501
});
1502
1503
assertLog(['Init A', 'Init B', 'Loading...']);
1559
}
1560
1561
const root = ReactTestRenderer.create(<Parent swap={false} />, {
1562
- unstable_isConcurrent: true,
1562
+ isConcurrent: true,
1563
});
1564
1565
await waitForAll(['Init A', 'Loading...']);
1628
}
1629
1630
const root = ReactTestRenderer.create(<Parent swap={false} />, {
1631
- unstable_isConcurrent: false,
1631
+ isConcurrent: false,
1632
});
1633
1634
assertLog(['Init A', 'Loading...']);