MCPcopy Index your code
hub / github.com/TanStack/query / QueryClientProvider

Function QueryClientProvider

packages/solid-query/src/QueryClientProvider.tsx:32–47  ·  view source on GitHub ↗
(
  props: QueryClientProviderProps,
)

Source from the content-addressed store, hash-verified

30}
31
32export const QueryClientProvider = (
33 props: QueryClientProviderProps,
34): JSX.Element => {
35 createRenderEffect<() => void>((unmount) => {
36 unmount?.()
37 props.client.mount()
38 return props.client.unmount.bind(props.client)
39 })
40 onCleanup(() => props.client.unmount())
41
42 return (
43 <QueryClientContext.Provider value={() => props.client}>
44 {props.children}
45 </QueryClientContext.Provider>
46 )
47}

Callers

nothing calls this directly

Calls 2

mountMethod · 0.45
unmountMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…