MCPcopy Create free account
hub / github.com/TanStack/query / isMissingQueryClientError

Function isMissingQueryClientError

packages/lit-query/src/tests/testHost.ts:99–103  ·  view source on GitHub ↗
(error: unknown)

Source from the content-addressed store, hash-verified

97}
98
99function isMissingQueryClientError(error: unknown): boolean {
100 return (
101 error instanceof Error && /No QueryClient available/.test(error.message)
102 )
103}
104
105export async function waitForMissingQueryClient(
106 read: () => unknown,

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected