Interface: StorefrontQueryArgs<TResult>
Inputs the SDK hands a query adapter for one read.
Type Parameters
TResult
TResult = unknown
Properties
enabled
enabled:
boolean
When false, no request runs (the hook stays pending/idle).
fetch
fetch: (
signal) =>Promise<TResult>
Run the read. Receives an AbortSignal the adapter may forward to cancel in-flight work.
Parameters
signal
AbortSignal
Returns
Promise<TResult>
key
key: readonly
unknown[]
Stable cache key (already namespaced — e.g. per signed-in customer). Identical keys share a
cache entry; a change resets the surfaced data and refetches. Used as TanStack's queryKey /
SWR's key, and by the lite adapter to detect a key change.