SuspenseAtomicPropOptions<T, S>
interfaceOptions for useSuspenseAtomicProp.
Type parameters
| Name | Type | Description |
|---|---|---|
T | — | The resolved value type after loading. |
S | — | Store state record. |
Properties
| Name | Type | Description |
|---|---|---|
errorTtlMs? | null | number | How long a **failed** load is remembered, in milliseconds. |
key? | string | Optional 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? | 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. |