PayloadFetchCallbacktype
(payload: P, signal: AbortSignal) => AsyncStoreInput<R>
| Type | |
|---|---|
AbortSignal | |
AsyncStoreInput | Synchronous or asynchronous values that a store natively knows how to process as inputs. |
Callback that fetches the next value for a PayloadFetchStore from a payload.
- Receives the current payload plus the
AbortSignalso it can cancel in-flight requests. - May return a value synchronously or a
PromiseLikeresolving to one (which the store will await).