Function
QueryClientProvider
(
props: QueryClientProviderProps,
)
Source from the content-addressed store, hash-verified
| 30 | } |
| 31 | |
| 32 | export 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
Tested by
no test coverage detected
Used in the wild real call sites across dependent graphs
searching dependent graphs…