SuspenseProps
Props of Suspense.
Props of Suspense.
Import#
ts
import type { SuspenseProps } from "@shadow-js/web";
Signature#
ts
interface SuspenseProps {
/**
* Shown while any resource read inside the boundary is loading for the first time.
* @default undefined (a pending boundary renders nothing)
*/
fallback?: unknown;
/**
* The content. Created once, under the boundary, and kept alive while the fallback is visible.
* @default undefined (renders nothing)
*/
children?: unknown;
}
Members#
| Name | Type | Description |
|---|---|---|
fallback? |
fallback?: unknown |
Shown while any resource read inside the boundary is loading for the first time. |
children? |
children?: unknown |
The content. Created once, under the boundary, and kept alive while the fallback is visible. |