La referencia de la API está disponible solo en inglés por ahora.

SuspenseAtomicPropsOptions<T, S>

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

Options for useSuspenseAtomicProps.

Type parameters

NameTypeDescription
TThe resolved value type after loading.
SStore state record.

Properties

NameTypeDescription
key?stringOptional extra key to differentiate cache entries.
load(state: S) => T | Promise<T>Async loader that receives the full store state.
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.