SuspenseAtomicPropsOptions<T, S>
interfaceOptions for useSuspenseAtomicProps.
Type parameters
| Name | Type | Description |
|---|---|---|
T | — | The resolved value type after loading. |
S | — | Store state record. |
Properties
| Name | Type | Description |
|---|---|---|
key? | string | Optional extra key to differentiate cache entries. |
load | (state: S) => T | Promise<T> | Async loader that receives the full store state. |
staleTime? | number | Extra 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. |