Function
QueryClientProvider
({
client,
children,
}: QueryClientProviderProps)
Source from the content-addressed store, hash-verified
| 27 | } |
| 28 | |
| 29 | export const QueryClientProvider = ({ |
| 30 | client, |
| 31 | children, |
| 32 | }: QueryClientProviderProps): React.JSX.Element => { |
| 33 | React.useEffect(() => { |
| 34 | client.mount() |
| 35 | return () => { |
| 36 | client.unmount() |
| 37 | } |
| 38 | }, [client]) |
| 39 | |
| 40 | return ( |
| 41 | <QueryClientContext.Provider value={client}> |
| 42 | {children} |
| 43 | </QueryClientContext.Provider> |
| 44 | ) |
| 45 | } |
Callers
nothing calls this directly
Tested by
no test coverage detected
Used in the wild real call sites across dependent graphs
searching dependent graphs…