MCPcopy
hub / github.com/TanStack/query / provideTanStackQuery

Function provideTanStackQuery

packages/angular-query-experimental/src/providers.ts:105–113  ·  view source on GitHub ↗
(
  queryClient: QueryClient | InjectionToken<QueryClient>,
  ...features: Array<QueryFeatures>
)

Source from the content-addressed store, hash-verified

103 * @see withDevtools
104 */
105export function provideTanStackQuery(
106 queryClient: QueryClient | InjectionToken<QueryClient>,
107 ...features: Array<QueryFeatures>
108): Array<Provider> {
109 return [
110 provideQueryClient(queryClient),
111 features.map((feature) => feature.ɵproviders),
112 ]
113}
114
115/**
116 * Sets up providers necessary to enable TanStack Query functionality for Angular applications.

Callers 15

app.config.tsFile · 0.90
app.config.tsFile · 0.90
app.config.tsFile · 0.90
app.config.tsFile · 0.90
app.config.tsFile · 0.90
app.config.tsFile · 0.90
app.config.tsFile · 0.90
app.config.tsFile · 0.90

Calls 1

provideQueryClientFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…