Skip to content
IC Reactor

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.

TQuery extends object

The query object the factory returns for args

const getBalance = createQueryFactory(ledger, {
functionName: "icrc1_balance_of",
})
// A SkippedQuery: only useQuery(), which does not fetch
const { data } = getBalance(skipToken).useQuery()