Skip to content
Source
Sign inSign up
TanStack/query
Open History to see the last commit

queryFeature.md

47 lines1.2 KB

function queryFeature<TFeatureKind>(kind: TFeatureKind, providers: Provider[]): QueryFeature<TFeatureKind>;

Defined in: packages/angular-query-experimental/src/providers.ts:143

Helper function to create an object that represents a Query feature.

Type Parameters

TFeatureKind

TFeatureKind extends "Devtools" | "PersistQueryClient"

Parameters

kind

TFeatureKind

The kind of feature, e.g. 'Devtools'.

providers

Provider[]

The Angular providers this feature contributes to provideTanStackQuery.

Returns

QueryFeature<TFeatureKind>

A Query feature.

Result properties

PropertyTypeDescription
ɵkindTFeatureKindThe kind of the feature, e.g. 'Devtools' or 'PersistQueryClient'.
ɵprovidersProvider[]The providers that provideTanStackQuery registers for the feature.