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 AbortSignal so it can cancel in-flight requests.
  • May return a value synchronously or a PromiseLike resolving to one (which the store will await).