|
Download react-query/docs/framework/react/reference/useQueryClient.md from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 395 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/1e92f2d0b9e054abc23a53595fd89ad3e2b4a34e/react-query/docs/framework/react/reference/useQueryClient.md
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset@1e92f2d0b9e054abc23a53595fd89ad3e2b4a34e/react-query/docs/framework/react/reference/useQueryClient.md
-
curl -L -o useQueryClient.md https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/1e92f2d0b9e054abc23a53595fd89ad3e2b4a34e/react-query/docs/framework/react/reference/useQueryClient.md
395 Bytes
| id: useQueryClient | |
| title: useQueryClient | |
| The `useQueryClient` hook returns the current `QueryClient` instance. | |
| ```tsx | |
| import { useQueryClient } from '@tanstack/react-query' | |
| const queryClient = useQueryClient(queryClient?: QueryClient) | |
| ``` | |
| **Options** | |
| - `queryClient?: QueryClient`, | |
| - Use this to use a custom QueryClient. Otherwise, the one from the nearest context will be used. | |