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

Function provideTanStackQuery

packages/angular-query/src/providers.ts:126–138  ·  view source on GitHub ↗
(
  queryClientFactory: () => QueryClient,
  ...features: ReadonlyArray<QueryFeature>
)

Source from the content-addressed store, hash-verified

124 * ```
125 */
126export function provideTanStackQuery(
127 queryClientFactory: () => QueryClient,
128 ...features: ReadonlyArray<QueryFeature>
129): EnvironmentProviders {
130 return makeEnvironmentProviders([
131 {
132 provide: QueryClient,
133 useFactory: () => injectQueryZone()(queryClientFactory),
134 },
135 ...features.map(getQueryFeatureProviders),
136 provideEnvironmentInitializer(configureQueryClient),
137 ])
138}
139
140const queryFeatureBrand: unique symbol = Symbol('QueryFeature')
141

Callers 15

consumer.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

injectQueryZoneFunction · 0.90

Tested by 4

renderFunction · 0.68
createQueryInjectorFunction · 0.68