TanStack
API Reference

QueryMeta

ts
type QueryMeta = Register extends object ? TQueryMeta extends Record<string, unknown> ? TQueryMeta : Record<string, unknown> : Record<string, unknown>;

Defined in: packages/query-core/src/types.ts:328

The type of the meta object that can be attached to a query and read back from queryFn, callbacks and cache-level handlers. Defaults to Record<string, unknown>; declare queryMeta on Register to narrow it.