FetchCallbacktype

(signal: AbortSignal) => StoreInput<T> | PromiseLike<StoreInput<T>>
Type
AbortSignal
StoreInput
Synchronous values that a store natively knows how to process as inputs.
PromiseLike

Callback that fetches the next value for a FetchStore.

  • Receives the current AbortSignal so it can cancel in-flight HTTP requests when the fetch is aborted.
  • May return a value synchronously or a PromiseLike resolving to one (which the store will await).