SuspenseList
SuspenseList allows for coordinating multiple parallel Suspense and SuspenseList components. It controls the order in which content is revealed to reduce layout thrashing and has an option to collapse or hide fallback states.
1 2 3 4 5 |
|
Note: SuspenseList is still in the experimental stage and does not have full SSR
support.
Here's an example of how to use SuspenseList:
1 2 3 4 5 6 7 8 9 |
|
Props¶
Name | Type | Default | Description |
---|---|---|---|
revealOrder | "forwards" \| "backwards" \| "together" | "forwards" | Determines the order in which the SuspenseList children should be revealed. |
tail | "collapsed" \| "hidden" | undefined | TODO |
revealOrder
¶
"forwards" | "backwards" | "together"
"forwards"
: Reveals each item in the list once the previous item has finished rendering. This is the default."backwards"
: Reveals each item in the list once the next item has finished rendering."together"
: Reveals all items in the list at the same time.
tail
¶
"collapsed" | "hidden"