diff --git a/packages/runtime-core/src/components/Suspense.ts b/packages/runtime-core/src/components/Suspense.ts index 85001f500cf..3a304bdb06e 100644 --- a/packages/runtime-core/src/components/Suspense.ts +++ b/packages/runtime-core/src/components/Suspense.ts @@ -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