SkippedQuery
SkippedQuery<
TQuery> =Pick<TQuery,"useQuery">
Defined in: react/src/types.ts:620
What a query factory returns for skipToken: the query’s useQuery hook
alone, which renders a query that waits without fetching.
The imperative members are left out because there is no call to make or
entry to read until the args are known: narrow to the args first to reach
fetch(), invalidate() or the cache controls.
Type Parameters
Section titled “Type Parameters”TQuery
Section titled “TQuery”TQuery extends object
The query object the factory returns for args
Example
Section titled “Example”const getBalance = createQueryFactory(ledger, { functionName: "icrc1_balance_of",})
// A SkippedQuery: only useQuery(), which does not fetchconst { data } = getBalance(skipToken).useQuery()