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
AbortSignalso it can cancel in-flight HTTP requests when the fetch is aborted. - May return a value synchronously or a
PromiseLikeresolving to one (which the store will await).