Przejdź do głównej zawartości

Interface: StorefrontQueryAdapter

A query adapter. useQuery is a React hook (called unconditionally by the SDK's data hooks); clear drops all cached data and is called by the SDK on sign-out and session expiry so a returning/next visitor never sees the previous account's data.

Methods

clear()

clear(): void

Returns

void


useQuery()

useQuery<TResult>(args): StorefrontQueryState<TResult>

Type Parameters

TResult

TResult

Parameters

args

StorefrontQueryArgs<TResult>

Returns

StorefrontQueryState<TResult>