provideQueryClient

Function: provideQueryClient()

ts
function provideQueryClient(value): Provider
function provideQueryClient(value): Provider

Usually provideAngularQuery is used once to set up TanStack Query and the https://tanstack.com/query/latest/docs/reference/QueryClient|QueryClient for the entire application. You can use provideQueryClient to provide a different QueryClient instance for a part of the application.

Parameters

value: QueryClient | () => QueryClient

Returns

Provider

Defined in

inject-query-client.ts:25

Want to Skip the Docs?
Query.gg - The Official React Query Course
“This course is the best way to learn how to use React Query in real-world applications.”—Tanner Linsley
Get the course