( state?: unknown, options?: HydrateOptions, queryClient?: QueryClient, )
| 3 | import type { HydrateOptions, QueryClient } from '@tanstack/query-core' |
| 4 | |
| 5 | export function useHydrate( |
| 6 | state?: unknown, |
| 7 | options?: HydrateOptions, |
| 8 | queryClient?: QueryClient, |
| 9 | ) { |
| 10 | const client = useQueryClient(queryClient) |
| 11 | |
| 12 | if (state) { |
| 13 | hydrate(client, state, options) |
| 14 | } |
| 15 | } |
nothing calls this directly
no test coverage detected
searching dependent graphs…