MCPcopy Create free account
hub / github.com/TanStack/query / provideTanStackQuery

Function provideTanStackQuery

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

Source from the content-addressed store, hash-verified

100 * ```
101 */
102export function provideTanStackQuery(
103 queryClient: QueryClient | InjectionToken<QueryClient>,
104 ...features: Array<QueryFeatures>
105): Array<Provider> {
106 return [
107 provideQueryClient(queryClient),
108 features.map((feature) => feature.ɵproviders),
109 ]
110}
111
112/**
113 * 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