You are reading the docs for 0.9. The latest version is 0.10. Read this page for 0.10 →

SuspenseAtomicPropOptions<T, S>

interface
react/src/hooks/suspense.ts:332

Options for useSuspenseAtomicProp.

Type parameters

NameTypeDescription
T–The resolved value type after loading.
S–Store state record.

Properties

NameTypeDescription
errorTtlMs?null | numberHow long a **failed** load is remembered, in milliseconds.
key?stringOptional extra key to differentiate cache entries for the same path.
load(valueAtPath: any, slice: S[keyof S]) => T | Promise<T>Async loader that receives the value at the path and the full slice.
staleTime?numberExtra wall-clock TTL (ms) for a resolved value. 0 (the default) or omitted means the cached value is served until the subscribed path changes or you invalidate it explicitly; a positive value additionally expires it after that many ms. Cached errors ignore this and are re-thrown until invalidated.