Documentation
Framework
Version

provideAngularQuery

Function: provideAngularQuery()

function provideAngularQuery(queryClient): Provider[]
function provideAngularQuery(queryClient): Provider[]

Defined in: providers.ts:124

Sets up providers necessary to enable TanStack Query functionality for Angular applications.

Allows to configure a QueryClient.

Parameters

queryClient

QueryClient

A QueryClient instance.

Returns

Provider[]

A set of providers to set up TanStack Query.

See

https://tanstack.com/query/v5/docs/framework/angular/quick-start

Deprecated

Use provideTanStackQuery instead.