react-code-dataset / react-query /docs /framework /angular /reference /functions /providequeryclient.md
|
Download react-query/docs/framework/angular/reference/functions/providequeryclient.md from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 1.02 kB
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/1e92f2d0b9e054abc23a53595fd89ad3e2b4a34e/react-query/docs/framework/angular/reference/functions/providequeryclient.md
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset@1e92f2d0b9e054abc23a53595fd89ad3e2b4a34e/react-query/docs/framework/angular/reference/functions/providequeryclient.md
-
curl -L -o providequeryclient.md https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/1e92f2d0b9e054abc23a53595fd89ad3e2b4a34e/react-query/docs/framework/angular/reference/functions/providequeryclient.md
1.02 kB
metadata
id: provideQueryClient
title: provideQueryClient
Function: provideQueryClient()
function provideQueryClient(queryClient): Provider
Usually provideTanStackQuery is used once to set up TanStack Query and the
https://tanstack.com/query/latest/docs/reference/QueryClient|QueryClient
for the entire application. Internally it calls provideQueryClient.
You can use provideQueryClient to provide a different QueryClient instance for a part
of the application or for unit testing purposes.
Parameters
queryClient
A QueryClient instance, or an InjectionToken which provides a QueryClient.
QueryClient | InjectionToken<QueryClient>
Returns
Provider
a provider object that can be used to provide the QueryClient instance.