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

Method constructor

packages/vue-query/src/queryClient.ts:68–75  ·  view source on GitHub ↗
(config: QueryClientConfig = {})

Source from the content-addressed store, hash-verified

66 */
67export class QueryClient extends QC {
68 constructor(config: QueryClientConfig = {}) {
69 const vueQueryConfig = {
70 defaultOptions: config.defaultOptions,
71 queryCache: config.queryCache || new QueryCache(),
72 mutationCache: config.mutationCache || new MutationCache(),
73 }
74 super(vueQueryConfig)
75 }
76
77 /**
78 * `true` while a `clientPersister` passed to `VueQueryPlugin` is restoring the cache. Queries don't fetch

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected