@@ -133,7 +133,7 @@ describe('Store', () => {
133
133
<Suspense>
134
134
▾ <Parent>
135
135
<Child>
136
- [shell]
136
+ [suspense-root] rects={null}
137
137
<Suspense name="Unknown" rects={null}>
138
138
` ) ;
139
139
} ) ;
@@ -492,7 +492,7 @@ describe('Store', () => {
492
492
<Component key="Outside">
493
493
▾ <Suspense>
494
494
<Loading>
495
- [shell]
495
+ [suspense-root] rects={[{x:1,y:2,width:5,height:1}, {x:1,y:2,width:10,height:1}]}
496
496
<Suspense name="Wrapper>?" rects={null}>
497
497
` ) ;
498
498
@@ -505,7 +505,7 @@ describe('Store', () => {
505
505
<Component key="Outside">
506
506
▾ <Suspense>
507
507
<Component key="Inside">
508
- [shell]
508
+ [suspense-root] rects={[{x:1,y:2,width:5,height:1}, {x:1,y:2,width:5,height:1}]}
509
509
<Suspense name="Wrapper>?" rects={[{x:1,y:2,width:5,height:1}]}>
510
510
` ) ;
511
511
} ) ;
@@ -584,7 +584,7 @@ describe('Store', () => {
584
584
▾ <Suspense name="three">
585
585
<Loading key="Suspense 3 Fallback">
586
586
<Component key="Unrelated at End">
587
- [shell]
587
+ [suspense-root] rects={[{x:1,y:2,width:10,height:1}]}
588
588
<Suspense name="parent" rects={[{x:1,y:2,width:10,height:1}]}>
589
589
<Suspense name="one" rects={null}>
590
590
<Suspense name="two" rects={null}>
@@ -612,7 +612,7 @@ describe('Store', () => {
612
612
▾ <Suspense name="three">
613
613
<Loading key="Suspense 3 Fallback">
614
614
<Component key="Unrelated at End">
615
- [shell]
615
+ [suspense-root] rects={[{x:1,y:2,width:10,height:1}, {x:1,y:2,width:10,height:1}]}
616
616
<Suspense name="parent" rects={[{x:1,y:2,width:10,height:1}, {x:1,y:2,width:10,height:1}]}>
617
617
<Suspense name="one" rects={null}>
618
618
<Suspense name="two" rects={null}>
@@ -640,7 +640,7 @@ describe('Store', () => {
640
640
▾ <Suspense name="three">
641
641
<Loading key="Suspense 3 Fallback">
642
642
<Component key="Unrelated at End">
643
- [shell]
643
+ [suspense-root] rects={[{x:1,y:2,width:10,height:1}, {x:1,y:2,width:10,height:1}]}
644
644
<Suspense name="parent" rects={[{x:1,y:2,width:10,height:1}, {x:1,y:2,width:10,height:1}]}>
645
645
<Suspense name="one" rects={null}>
646
646
<Suspense name="two" rects={null}>
@@ -668,7 +668,7 @@ describe('Store', () => {
668
668
▾ <Suspense name="three">
669
669
<Loading key="Suspense 3 Fallback">
670
670
<Component key="Unrelated at End">
671
- [shell]
671
+ [suspense-root] rects={[{x:1,y:2,width:10,height:1}, {x:1,y:2,width:10,height:1}]}
672
672
<Suspense name="parent" rects={[{x:1,y:2,width:10,height:1}, {x:1,y:2,width:10,height:1}]}>
673
673
<Suspense name="one" rects={null}>
674
674
<Suspense name="two" rects={null}>
@@ -689,7 +689,7 @@ describe('Store', () => {
689
689
<Component key="Outside">
690
690
▾ <Suspense name="parent">
691
691
<Loading key="Parent Fallback">
692
- [shell]
692
+ [suspense-root] rects={[{x:1,y:2,width:10,height:1}, {x:1,y:2,width:10,height:1}, {x:1,y:2,width:10,height:1}]}
693
693
<Suspense name="parent" rects={[{x:1,y:2,width:10,height:1}, {x:1,y:2,width:10,height:1}]}>
694
694
<Suspense name="one" rects={null}>
695
695
<Suspense name="two" rects={null}>
@@ -717,7 +717,7 @@ describe('Store', () => {
717
717
▾ <Suspense name="three">
718
718
<Loading key="Suspense 3 Fallback">
719
719
<Component key="Unrelated at End">
720
- [shell]
720
+ [suspense-root] rects={[{x:1,y:2,width:10,height:1}, {x:1,y:2,width:10,height:1}, {x:1,y:2,width:10,height:1}]}
721
721
<Suspense name="parent" rects={[{x:1,y:2,width:10,height:1}, {x:1,y:2,width:10,height:1}, {x:1,y:2,width:10,height:1}]}>
722
722
<Suspense name="one" rects={null}>
723
723
<Suspense name="two" rects={null}>
@@ -745,7 +745,7 @@ describe('Store', () => {
745
745
▾ <Suspense name="three">
746
746
<Loading key="Suspense 3 Fallback">
747
747
<Component key="Unrelated at End">
748
- [shell]
748
+ [suspense-root] rects={[{x:1,y:2,width:10,height:1}]}
749
749
<Suspense name="parent" rects={[{x:1,y:2,width:10,height:1}]}>
750
750
<Suspense name="one" rects={null}>
751
751
<Suspense name="two" rects={null}>
@@ -773,7 +773,7 @@ describe('Store', () => {
773
773
▾ <Suspense name="three">
774
774
<Loading key="Suspense 3 Fallback">
775
775
<Component key="Unrelated at End">
776
- [shell]
776
+ [suspense-root] rects={[{x:1,y:2,width:10,height:1}, {x:1,y:2,width:10,height:1}]}
777
777
<Suspense name="parent" rects={[{x:1,y:2,width:10,height:1}, {x:1,y:2,width:10,height:1}]}>
778
778
<Suspense name="one" rects={null}>
779
779
<Suspense name="two" rects={null}>
@@ -792,7 +792,7 @@ describe('Store', () => {
792
792
<Component key="Outside">
793
793
▾ <Suspense name="parent">
794
794
<Loading key="Parent Fallback">
795
- [shell]
795
+ [suspense-root] rects={[{x:1,y:2,width:10,height:1}, {x:1,y:2,width:10,height:1}, {x:1,y:2,width:10,height:1}]}
796
796
<Suspense name="parent" rects={[{x:1,y:2,width:10,height:1}, {x:1,y:2,width:10,height:1}]}>
797
797
<Suspense name="one" rects={null}>
798
798
<Suspense name="two" rects={null}>
@@ -813,7 +813,7 @@ describe('Store', () => {
813
813
<Component key="Outside">
814
814
▾ <Suspense name="parent">
815
815
<Loading key="Parent Fallback">
816
- [shell]
816
+ [suspense-root] rects={[{x:1,y:2,width:10,height:1}, {x:1,y:2,width:10,height:1}, {x:1,y:2,width:10,height:1}]}
817
817
<Suspense name="parent" rects={[{x:1,y:2,width:10,height:1}, {x:1,y:2,width:10,height:1}]}>
818
818
<Suspense name="one" rects={null}>
819
819
<Suspense name="two" rects={null}>
@@ -839,7 +839,7 @@ describe('Store', () => {
839
839
▾ <Suspense name="three">
840
840
<Loading key="Suspense 3 Fallback">
841
841
<Component key="Unrelated at End">
842
- [shell]
842
+ [suspense-root] rects={[{x:1,y:2,width:10,height:1}, {x:1,y:2,width:10,height:1}, {x:1,y:2,width:10,height:1}]}
843
843
<Suspense name="parent" rects={[{x:1,y:2,width:10,height:1}, {x:1,y:2,width:10,height:1}, {x:1,y:2,width:10,height:1}]}>
844
844
<Suspense name="one" rects={null}>
845
845
<Suspense name="two" rects={null}>
@@ -865,7 +865,7 @@ describe('Store', () => {
865
865
▾ <Suspense name="three">
866
866
<Loading key="Suspense 3 Fallback">
867
867
<Component key="Unrelated at End">
868
- [shell]
868
+ [suspense-root] rects={[{x:1,y:2,width:10,height:1}, {x:1,y:2,width:10,height:1}, {x:1,y:2,width:10,height:1}]}
869
869
<Suspense name="parent" rects={[{x:1,y:2,width:10,height:1}, {x:1,y:2,width:10,height:1}, {x:1,y:2,width:10,height:1}]}>
870
870
<Suspense name="one" rects={null}>
871
871
<Suspense name="two" rects={null}>
@@ -893,7 +893,7 @@ describe('Store', () => {
893
893
▾ <Suspense name="three">
894
894
<Loading key="Suspense 3 Fallback">
895
895
<Component key="Unrelated at End">
896
- [shell]
896
+ [suspense-root] rects={[{x:1,y:2,width:10,height:1}]}
897
897
<Suspense name="parent" rects={[{x:1,y:2,width:10,height:1}]}>
898
898
<Suspense name="one" rects={null}>
899
899
<Suspense name="two" rects={null}>
@@ -948,7 +948,7 @@ describe('Store', () => {
948
948
▾ <Suspense name="three">
949
949
<Component key="Suspense 3 Content">
950
950
<Component key="Unrelated at End">
951
- [shell]
951
+ [suspense-root] rects={[{x:1,y:2,width:5,height:1}, {x:1,y:2,width:5,height:1}, {x:1,y:2,width:5,height:1}, {x:1,y:2,width:5,height:1}, {x:1,y:2,width:5,height:1}, {x:1,y:2,width:5,height:1}]}
952
952
<Suspense name="parent" rects={[{x:1,y:2,width:5,height:1}, {x:1,y:2,width:5,height:1}, {x:1,y:2,width:5,height:1}, {x:1,y:2,width:5,height:1}, {x:1,y:2,width:5,height:1}]}>
953
953
<Suspense name="one" rects={[{x:1,y:2,width:5,height:1}]}>
954
954
<Suspense name="two" rects={[{x:1,y:2,width:5,height:1}]}>
@@ -981,7 +981,7 @@ describe('Store', () => {
981
981
▾ <Suspense name="three">
982
982
<Component key="Suspense 3 Fallback">
983
983
<Component key="Unrelated at End">
984
- [shell]
984
+ [suspense-root] rects={[{x:1,y:2,width:5,height:1}, {x:1,y:2,width:5,height:1}, {x:1,y:2,width:5,height:1}, {x:1,y:2,width:5,height:1}, {x:1,y:2,width:5,height:1}, {x:1,y:2,width:5,height:1}, {x:1,y:2,width:5,height:1}, {x:1,y:2,width:5,height:1}]}
985
985
<Suspense name="parent" rects={[{x:1,y:2,width:5,height:1}, {x:1,y:2,width:5,height:1}, {x:1,y:2,width:5,height:1}, {x:1,y:2,width:5,height:1}, {x:1,y:2,width:5,height:1}, {x:1,y:2,width:5,height:1}, {x:1,y:2,width:5,height:1}]}>
986
986
<Suspense name="one" rects={[{x:1,y:2,width:5,height:1}]}>
987
987
<Suspense name="two" rects={[{x:1,y:2,width:5,height:1}]}>
@@ -1009,7 +1009,7 @@ describe('Store', () => {
1009
1009
▾ <Suspense name="three">
1010
1010
<Component key="Suspense 3 Content">
1011
1011
<Component key="Unrelated at End">
1012
- [shell]
1012
+ [suspense-root] rects={[{x:1,y:2,width:5,height:1}, {x:1,y:2,width:5,height:1}, {x:1,y:2,width:5,height:1}, {x:1,y:2,width:5,height:1}, {x:1,y:2,width:5,height:1}, {x:1,y:2,width:5,height:1}]}
1013
1013
<Suspense name="parent" rects={[{x:1,y:2,width:5,height:1}, {x:1,y:2,width:5,height:1}, {x:1,y:2,width:5,height:1}, {x:1,y:2,width:5,height:1}, {x:1,y:2,width:5,height:1}]}>
1014
1014
<Suspense name="one" rects={[{x:1,y:2,width:5,height:1}]}>
1015
1015
<Suspense name="two" rects={[{x:1,y:2,width:5,height:1}]}>
@@ -1053,7 +1053,7 @@ describe('Store', () => {
1053
1053
<Component key="A">
1054
1054
▾ <Suspense>
1055
1055
<Loading>
1056
- [shell]
1056
+ [suspense-root] rects={[{x:1,y:2,width:5,height:1}, {x:1,y:2,width:10,height:1}]}
1057
1057
<Suspense name="Wrapper>?" rects={null}>
1058
1058
` ) ;
1059
1059
@@ -1068,7 +1068,7 @@ describe('Store', () => {
1068
1068
▾ <Suspense>
1069
1069
<Component key="B">
1070
1070
<Component key="C">
1071
- [shell]
1071
+ [suspense-root] rects={[{x:1,y:2,width:5,height:1}, {x:1,y:2,width:5,height:1}, {x:1,y:2,width:5,height:1}]}
1072
1072
<Suspense name="Wrapper>?" rects={[{x:1,y:2,width:5,height:1}]}>
1073
1073
` ) ;
1074
1074
} ) ;
@@ -1406,7 +1406,7 @@ describe('Store', () => {
1406
1406
expect ( store ) . toMatchInlineSnapshot ( `
1407
1407
[root]
1408
1408
▸ <Wrapper>
1409
- [shell]
1409
+ [suspense-root] rects={[{x:1,y:2,width:5,height:1}, {x:1,y:2,width:10,height:1}]}
1410
1410
<Suspense name="Wrapper>?" rects={null}>
1411
1411
` ) ;
1412
1412
@@ -1423,7 +1423,7 @@ describe('Store', () => {
1423
1423
<Component key="Outside">
1424
1424
▾ <Suspense>
1425
1425
<Loading>
1426
- [shell]
1426
+ [suspense-root] rects={[{x:1,y:2,width:5,height:1}, {x:1,y:2,width:10,height:1}]}
1427
1427
<Suspense name="Wrapper>?" rects={null}>
1428
1428
` ) ;
1429
1429
@@ -1436,7 +1436,7 @@ describe('Store', () => {
1436
1436
<Component key="Outside">
1437
1437
▾ <Suspense>
1438
1438
<Component key="Inside">
1439
- [shell]
1439
+ [suspense-root] rects={[{x:1,y:2,width:5,height:1}, {x:1,y:2,width:5,height:1}]}
1440
1440
<Suspense name="Wrapper>?" rects={[{x:1,y:2,width:5,height:1}]}>
1441
1441
` ) ;
1442
1442
} ) ;
@@ -1662,7 +1662,7 @@ describe('Store', () => {
1662
1662
expect ( store ) . toMatchInlineSnapshot ( `
1663
1663
[root]
1664
1664
▸ <SuspenseTree>
1665
- [shell]
1665
+ [suspense-root] rects={null}
1666
1666
<Suspense name="SuspenseTree>?" rects={null}>
1667
1667
` ) ;
1668
1668
@@ -1677,7 +1677,7 @@ describe('Store', () => {
1677
1677
▾ <SuspenseTree>
1678
1678
▾ <Suspense>
1679
1679
▸ <Parent>
1680
- [shell]
1680
+ [suspense-root] rects={null}
1681
1681
<Suspense name="SuspenseTree>?" rects={null}>
1682
1682
` ) ;
1683
1683
@@ -1696,7 +1696,7 @@ describe('Store', () => {
1696
1696
▾ <SuspenseTree>
1697
1697
▾ <Suspense>
1698
1698
<Fallback>
1699
- [shell]
1699
+ [suspense-root] rects={null}
1700
1700
<Suspense name="SuspenseTree>?" rects={null}>
1701
1701
` ) ;
1702
1702
@@ -1712,7 +1712,7 @@ describe('Store', () => {
1712
1712
▾ <SuspenseTree>
1713
1713
▾ <Suspense>
1714
1714
▸ <Parent>
1715
- [shell]
1715
+ [suspense-root] rects={null}
1716
1716
<Suspense name="SuspenseTree>?" rects={null}>
1717
1717
` ) ;
1718
1718
} ) ;
@@ -2017,7 +2017,7 @@ describe('Store', () => {
2017
2017
[root]
2018
2018
▾ <App>
2019
2019
<Suspense>
2020
- [shell]
2020
+ [suspense-root] rects={null}
2021
2021
<Suspense name="App>?" rects={null}>
2022
2022
` ) ;
2023
2023
@@ -2031,7 +2031,7 @@ describe('Store', () => {
2031
2031
▾ <App>
2032
2032
▾ <Suspense>
2033
2033
<LazyInnerComponent>
2034
- [shell]
2034
+ [suspense-root] rects={null}
2035
2035
<Suspense name="App>?" rects={null}>
2036
2036
` ) ;
2037
2037
@@ -2522,7 +2522,7 @@ describe('Store', () => {
2522
2522
▾ <App>
2523
2523
▾ <Suspense>
2524
2524
<ChildA>
2525
- [shell]
2525
+ [suspense-root] rects={null}
2526
2526
<Suspense name="App>?" rects={null}>
2527
2527
` ) ;
2528
2528
@@ -2533,7 +2533,7 @@ describe('Store', () => {
2533
2533
▾ <App>
2534
2534
▾ <Suspense>
2535
2535
<ChildB>
2536
- [shell]
2536
+ [suspense-root] rects={null}
2537
2537
<Suspense name="App>?" rects={null}>
2538
2538
` ) ;
2539
2539
} ) ;
@@ -2860,7 +2860,7 @@ describe('Store', () => {
2860
2860
▾ <Suspense name="content">
2861
2861
▾ <Suspense name="fallback">
2862
2862
<Component key="fallback-fallback">
2863
- [shell]
2863
+ [suspense-root] rects={[{x:1,y:2,width:19,height:1}]}
2864
2864
<Suspense name="content" rects={null}>
2865
2865
<Suspense name="fallback" rects={null}>
2866
2866
` ) ;
@@ -2874,7 +2874,7 @@ describe('Store', () => {
2874
2874
▾ <Suspense name="content">
2875
2875
▾ <Suspense name="fallback">
2876
2876
<Component key="fallback-content">
2877
- [shell]
2877
+ [suspense-root] rects={[{x:1,y:2,width:10,height:1}]}
2878
2878
<Suspense name="content" rects={null}>
2879
2879
<Suspense name="fallback" rects={[{x:1,y:2,width:10,height:1}]}>
2880
2880
` ) ;
@@ -2887,7 +2887,7 @@ describe('Store', () => {
2887
2887
[root]
2888
2888
▾ <Suspense name="content">
2889
2889
<Component key="content">
2890
- [shell]
2890
+ [suspense-root] rects={[{x:1,y:2,width:4,height:1}]}
2891
2891
<Suspense name="content" rects={[{x:1,y:2,width:4,height:1}]}>
2892
2892
` ) ;
2893
2893
} ) ;
@@ -2990,7 +2990,7 @@ describe('Store', () => {
2990
2990
▾ <Suspense name="main">
2991
2991
▾ <Suspense name="main-fallback">
2992
2992
<Component key="main-fallback-fallback">
2993
- [shell]
2993
+ [suspense-root] rects={[{x:1,y:2,width:19,height:1}, {x:1,y:2,width:19,height:1}]}
2994
2994
<Suspense name="head" rects={null}>
2995
2995
<Suspense name="head-fallback" rects={null}>
2996
2996
<Suspense name="main" rects={null}>
@@ -3013,7 +3013,7 @@ describe('Store', () => {
3013
3013
▾ <WithSuspenseInFallback>
3014
3014
▾ <Suspense name="main">
3015
3015
<Component key="main-content">
3016
- [shell]
3016
+ [suspense-root] rects={[{x:1,y:2,width:4,height:1}, {x:1,y:2,width:4,height:1}]}
3017
3017
<Suspense name="head" rects={[{x:1,y:2,width:4,height:1}]}>
3018
3018
<Suspense name="main" rects={[{x:1,y:2,width:4,height:1}]}>
3019
3019
` ) ;
@@ -3043,7 +3043,7 @@ describe('Store', () => {
3043
3043
▾ <WithSuspenseInFallback>
3044
3044
▾ <Suspense name="main">
3045
3045
<Component key="main-content">
3046
- [shell]
3046
+ [suspense-root] rects={[{x:1,y:2,width:4,height:1}, {x:1,y:2,width:10,height:1}, {x:1,y:2,width:4,height:1}]}
3047
3047
<Suspense name="head" rects={[{x:1,y:2,width:4,height:1}]}>
3048
3048
<Suspense name="head-fallback" rects={[{x:1,y:2,width:10,height:1}]}>
3049
3049
<Suspense name="main" rects={[{x:1,y:2,width:4,height:1}]}>
@@ -3074,10 +3074,15 @@ describe('Store', () => {
3074
3074
▾ <WithSuspenseInFallback>
3075
3075
▾ <Suspense name="main">
3076
3076
<Component key="main-content">
3077
- [shell]
3077
+ [suspense-root] rects={[{x:1,y:2,width:4,height:1}, {x:1,y:2,width:10,height:1}, {x:1,y:2,width:19,height:1}, {x:1,y:2,width:4,height:1}]}
3078
3078
<Suspense name="head" rects={[{x:1,y:2,width:4,height:1}]}>
3079
3079
<Suspense name="head-fallback" rects={[{x:1,y:2,width:10,height:1}]}>
3080
3080
<Suspense name="main" rects={[{x:1,y:2,width:4,height:1}]}>
3081
3081
` ) ;
3082
3082
} ) ;
3083
+
3084
+ it ( 'should handle an empty root' , async ( ) => {
3085
+ await actAsync ( ( ) => render ( null ) ) ;
3086
+ expect ( store ) . toMatchInlineSnapshot ( `[root]` ) ;
3087
+ } ) ;
3083
3088
} ) ;
0 commit comments