93
<LazyText text="Hi" />
94
</Suspense>,
95
{
96
- isConcurrent: true,
96
+ unstable_isConcurrent: true,
97
},
98
);
99
179
<LazyBar />
180
</Suspense>,
181
{
182
- isConcurrent: true,
182
+ unstable_isConcurrent: true,
183
},
184
);
185
202
const LazyText = lazy(async () => Text);
203
204
const root = ReactTestRenderer.create(null, {
205
- isConcurrent: true,
205
+ unstable_isConcurrent: true,
206
});
207
208
let error;
236
});
237
238
const root = ReactTestRenderer.create(null, {
239
- isConcurrent: true,
239
+ unstable_isConcurrent: true,
240
});
241
242
let error;
296
}
297
298
const root = ReactTestRenderer.create(<Parent swap={false} />, {
299
- isConcurrent: true,
299
+ unstable_isConcurrent: true,
300
});
301
302
await waitForAll(['Suspend! [LazyChildA]', 'Loading...']);
331
<LazyText />
332
</Suspense>,
333
{
334
- isConcurrent: true,
334
+ unstable_isConcurrent: true,
335
},
336
);
337
388
</Lazy>
389
</Suspense>,
390
{
391
- isConcurrent: true,
391
+ unstable_isConcurrent: true,
392
},
393
);
394
await waitForAll(['Loading...']);
434
</Suspense>
435
</>,
436
{
437
- isConcurrent: true,
437
+ unstable_isConcurrent: true,
438
},
439
);
440
await waitForAll(['Not lazy: 0', 'Loading...']);
479
</Suspense>
480
</>,
481
{
482
- isConcurrent: true,
482
+ unstable_isConcurrent: true,
483
},
484
);
485
await waitForAll(['Not lazy: 0', 'Loading...']);
555
<LazyClass num={1} />
556
</Suspense>,
557
{
558
- isConcurrent: true,
558
+ unstable_isConcurrent: true,
559
},
560
);
561
685
<LazyText />
686
</Suspense>,
687
{
688
- isConcurrent: true,
688
+ unstable_isConcurrent: true,
689
},
690
);
691
728
<BadLazy />
729
</Suspense>,
730
{
731
- isConcurrent: true,
731
+ unstable_isConcurrent: true,
732
},
733
);
734
755
<Lazy2 text="Hello" />
756
</Suspense>,
757
{
758
- isConcurrent: true,
758
+ unstable_isConcurrent: true,
759
},
760
);
761
788
<LazyAdd inner="2" outer="2" />
789
</Suspense>,
790
{
791
- isConcurrent: true,
791
+ unstable_isConcurrent: true,
792
},
793
);
794
935
<LazyText />
936
</Suspense>,
937
{
938
- isConcurrent: true,
938
+ unstable_isConcurrent: true,
939
},
940
);
941
973
<LazyFoo />
974
</Suspense>,
975
{
976
- isConcurrent: true,
976
+ unstable_isConcurrent: true,
977
},
978
);
979
1018
<LazyForwardRef ref={ref} />
1019
</Suspense>,
1020
{
1021
- isConcurrent: true,
1021
+ unstable_isConcurrent: true,
1022
},
1023
);
1024
1049
<LazyAdd outer={2} />
1050
</Suspense>,
1051
{
1052
- isConcurrent: true,
1052
+ unstable_isConcurrent: true,
1053
},
1054
);
1055
await waitForAll(['Loading...']);
1136
<LazyAdd outer={2} />
1137
</Suspense>,
1138
{
1139
- isConcurrent: true,
1139
+ unstable_isConcurrent: true,
1140
},
1141
);
1142
await waitForAll(['Loading...']);
1183
<LazyFoo ref={ref} />
1184
</Suspense>,
1185
{
1186
- isConcurrent: true,
1186
+ unstable_isConcurrent: true,
1187
},
1188
);
1189
1223
<LazyText text="Hi" />
1224
</Suspense>
1225
</ErrorBoundary>,
1226
- {isConcurrent: true},
1226
+ {unstable_isConcurrent: true},
1227
);
1228
1229
await waitForAll(['Loading...']);
1331
}
1332
1333
const root = ReactTestRenderer.create(<Parent swap={false} />, {
1334
- isConcurrent: true,
1334
+ unstable_isConcurrent: true,
1335
});
1336
1337
await waitForAll(['Init A', 'Loading...']);
1416
}
1417
1418
const root = ReactTestRenderer.create(<Parent swap={false} />, {
1419
- isConcurrent: false,
1419
+ unstable_isConcurrent: false,
1420
});
1421
1422
assertLog(['Init A', 'Init B', 'Loading...']);
1478
}
1479
1480
const root = ReactTestRenderer.create(<Parent swap={false} />, {
1481
- isConcurrent: true,
1481
+ unstable_isConcurrent: true,
1482
});
1483
1484
await waitForAll(['Init A', 'Loading...']);
1547
}
1548
1549
const root = ReactTestRenderer.create(<Parent swap={false} />, {
1550
- isConcurrent: false,
1550
+ unstable_isConcurrent: false,
1551
});
1552
1553
assertLog(['Init A', 'Loading...']);