Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions packages/runtime-core/src/components/Suspense.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,10 @@ export interface SuspenseProps {
onResolve?: () => void
onPending?: () => void
onFallback?: () => void
/**
* Switch to fallback content if it takes longer than `timeout` milliseconds to render the new default content.
* A `timeout` value of `0` will cause the fallback content to be displayed immediately when default content is replaced.
*/
timeout?: string | number
/**
* Allow suspense to be captured by parent suspense
Expand Down