Interface: UseTRPCQueryOptions<TOutput, TData, TError, TQueryOptsData>
Extends
DistributiveOmit
<UseBaseQueryOptions
<TOutput
,TError
,TData
,TQueryOptsData
,any
>,"queryKey"
>.TRPCUseQueryBaseOptions
Type Parameters
Type Parameter | Default type |
---|---|
TOutput | - |
TData | - |
TError | - |
TQueryOptsData | TOutput |
Properties
_defaulted?
optional
_defaulted:boolean
Inherited from
DistributiveOmit._defaulted
Defined in
node_modules/.pnpm/@tanstack+query-core@5.59.13/node_modules/@tanstack/query-core/build/legacy/hydration-mKPlgzt9.d.ts:593
_optimisticResults?
optional
_optimisticResults:"optimistic"
|"isRestoring"
Inherited from
DistributiveOmit._optimisticResults
Defined in
node_modules/.pnpm/@tanstack+query-core@5.59.13/node_modules/@tanstack/query-core/build/legacy/hydration-mKPlgzt9.d.ts:704
behavior?
optional
behavior:QueryBehavior
<TOutput
,TError
,TQueryOptsData
,any
>
Inherited from
DistributiveOmit.behavior
Defined in
node_modules/.pnpm/@tanstack+query-core@5.59.13/node_modules/@tanstack/query-core/build/legacy/hydration-mKPlgzt9.d.ts:586
enabled?
optional
enabled:Enabled
<TOutput
,TError
,TQueryOptsData
,any
>
Set this to false
or a function that returns false
to disable automatic refetching when the query mounts or changes query keys.
To refetch the query, use the refetch
method returned from the useQuery
instance.
Accepts a boolean or function that returns a boolean.
Defaults to true
.
Inherited from
DistributiveOmit.enabled
Defined in
node_modules/.pnpm/@tanstack+query-core@5.59.13/node_modules/@tanstack/query-core/build/legacy/hydration-mKPlgzt9.d.ts:627
experimental_prefetchInRender?
optional
experimental_prefetchInRender:boolean
Enable prefetching during rendering
Inherited from
DistributiveOmit.experimental_prefetchInRender
Defined in
node_modules/.pnpm/@tanstack+query-core@5.59.13/node_modules/@tanstack/query-core/build/legacy/hydration-mKPlgzt9.d.ts:708
gcTime?
optional
gcTime:number
The time in milliseconds that unused/inactive cache data remains in memory.
When a query's cache becomes unused or inactive, that cache data will be garbage collected after this duration.
When different garbage collection times are specified, the longest one will be used.
Setting it to Infinity
will disable garbage collection.
Inherited from
DistributiveOmit.gcTime
Defined in
node_modules/.pnpm/@tanstack+query-core@5.59.13/node_modules/@tanstack/query-core/build/legacy/hydration-mKPlgzt9.d.ts:578
initialData?
optional
initialData:TQueryOptsData
|InitialDataFunction
<TQueryOptsData
>
Inherited from
DistributiveOmit.initialData
Defined in
node_modules/.pnpm/@tanstack+query-core@5.59.13/node_modules/@tanstack/query-core/build/legacy/hydration-mKPlgzt9.d.ts:584
initialDataUpdatedAt?
optional
initialDataUpdatedAt:number
| () =>undefined
|number
Inherited from
DistributiveOmit.initialDataUpdatedAt
Defined in
node_modules/.pnpm/@tanstack+query-core@5.59.13/node_modules/@tanstack/query-core/build/legacy/hydration-mKPlgzt9.d.ts:585
maxPages?
optional
maxPages:number
Maximum number of pages to store in the data of an infinite query.
Inherited from
DistributiveOmit.maxPages
Defined in
node_modules/.pnpm/@tanstack+query-core@5.59.13/node_modules/@tanstack/query-core/build/legacy/hydration-mKPlgzt9.d.ts:602
meta?
optional
meta:Record
<string
,unknown
>
Additional payload to be stored on each query. Use this property to pass information that can be used in other places.
Inherited from
DistributiveOmit.meta
Defined in
node_modules/.pnpm/@tanstack+query-core@5.59.13/node_modules/@tanstack/query-core/build/legacy/hydration-mKPlgzt9.d.ts:598
networkMode?
optional
networkMode:NetworkMode