Commit d742611
authored
Replace Implicit Options on SuspenseList with Explicit Options (facebook#33424)
We want to change the defaults for `revealOrder` and `tail` on
SuspenseList. This is an intermediate step to allow experimental users
to upgrade.
To explicitly specify these options I added `revealOrder="independent"`
and `tail="visible"`.
I then added warnings if `undefined` or `null` is passed. You must now
always explicitly specify them. However, semantics are still preserved
for now until the next step.
We also want to change the rendering order of the `children` prop for
`revealOrder="backwards"`. As an intermediate step I first added
`revealOrder="unstable_legacy-backwards"` option. This will only be
temporary until all users can switch to the new `"backwards"` semantics
once we flip it in the next step.
I also clarified the types that the directional props requires iterable
children but not iterable inside of those. Rows with multiple items can
be modeled as explicit fragments.1 parent 1540081 commit d742611
File tree
18 files changed
+397
-72
lines changed- fixtures/ssr/src/components
- packages
- react-dom/src/__tests__
- react-reconciler/src
- __tests__
- react-server/src
18 files changed
+397
-72
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
611 | 611 | | |
612 | 612 | | |
613 | 613 | | |
| 614 | + | |
614 | 615 | | |
615 | 616 | | |
616 | 617 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1289 | 1289 | | |
1290 | 1290 | | |
1291 | 1291 | | |
1292 | | - | |
| 1292 | + | |
1293 | 1293 | | |
1294 | 1294 | | |
1295 | 1295 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2254 | 2254 | | |
2255 | 2255 | | |
2256 | 2256 | | |
2257 | | - | |
| 2257 | + | |
2258 | 2258 | | |
2259 | 2259 | | |
2260 | 2260 | | |
| |||
Lines changed: 75 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
197 | 197 | | |
198 | 198 | | |
199 | 199 | | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
200 | 264 | | |
201 | 265 | | |
202 | 266 | | |
| |||
452 | 516 | | |
453 | 517 | | |
454 | 518 | | |
455 | | - | |
| 519 | + | |
456 | 520 | | |
457 | 521 | | |
458 | 522 | | |
| |||
464 | 528 | | |
465 | 529 | | |
466 | 530 | | |
467 | | - | |
| 531 | + | |
468 | 532 | | |
469 | 533 | | |
470 | 534 | | |
| |||
523 | 587 | | |
524 | 588 | | |
525 | 589 | | |
526 | | - | |
| 590 | + | |
527 | 591 | | |
528 | 592 | | |
529 | 593 | | |
| |||
586 | 650 | | |
587 | 651 | | |
588 | 652 | | |
589 | | - | |
| 653 | + | |
590 | 654 | | |
591 | 655 | | |
592 | 656 | | |
593 | 657 | | |
594 | 658 | | |
595 | 659 | | |
596 | 660 | | |
597 | | - | |
| 661 | + | |
598 | 662 | | |
599 | 663 | | |
600 | 664 | | |
| |||
665 | 729 | | |
666 | 730 | | |
667 | 731 | | |
668 | | - | |
669 | | - | |
| 732 | + | |
| 733 | + | |
| 734 | + | |
| 735 | + | |
670 | 736 | | |
671 | 737 | | |
672 | 738 | | |
| |||
736 | 802 | | |
737 | 803 | | |
738 | 804 | | |
739 | | - | |
| 805 | + | |
740 | 806 | | |
741 | 807 | | |
742 | 808 | | |
| |||
791 | 857 | | |
792 | 858 | | |
793 | 859 | | |
794 | | - | |
| 860 | + | |
795 | 861 | | |
796 | 862 | | |
797 | 863 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5755 | 5755 | | |
5756 | 5756 | | |
5757 | 5757 | | |
5758 | | - | |
| 5758 | + | |
5759 | 5759 | | |
5760 | 5760 | | |
5761 | 5761 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2362 | 2362 | | |
2363 | 2363 | | |
2364 | 2364 | | |
2365 | | - | |
| 2365 | + | |
2366 | 2366 | | |
2367 | 2367 | | |
2368 | 2368 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
123 | 123 | | |
124 | 124 | | |
125 | 125 | | |
126 | | - | |
| 126 | + | |
127 | 127 | | |
128 | 128 | | |
129 | 129 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
172 | 172 | | |
173 | 173 | | |
174 | 174 | | |
175 | | - | |
| 175 | + | |
176 | 176 | | |
177 | 177 | | |
178 | 178 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2097 | 2097 | | |
2098 | 2098 | | |
2099 | 2099 | | |
2100 | | - | |
| 2100 | + | |
| 2101 | + | |
| 2102 | + | |
2101 | 2103 | | |
2102 | 2104 | | |
2103 | 2105 | | |
| |||
0 commit comments