TanStack
API Reference

queryFeature

ts
function queryFeature<TFeatureKind>(kind, providers): QueryFeature<TFeatureKind>;

Defined in: 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.