getDefaultQueryClient
TypeScript
1function getDefaultQueryClient(): QueryClient | undefined;定义位置:packages/lit-query/src/context.ts:69
当且仅当存在一个已注册的默认 QueryClient 时,返回该默认 QueryClient。
返回值
QueryClient | undefined
默认查询客户端;若未注册任何客户端,或注册了多个客户端,则返回 undefined。