API Documentation / @pinia/colada / UseQueryStateReturn
Interface: UseQueryStateReturn<TData, TError, TDataInitial>
Return type for the useQueryState composable.
See
Type Parameters
TData
TData
= unknown
TError
TError
= ErrorDefault
TDataInitial
TDataInitial
extends TData
| undefined
= undefined
Properties
asyncStatus
ts
asyncStatus: ComputedRef<undefined | AsyncStatus>;
asyncStatus
of the query entry.
See
data
ts
data: ComputedRef<undefined | TData | TDataInitial>;
data
of the query entry.
See
error
ts
error: ComputedRef<undefined | null | TError>;
error
of the query entry.
See
isPending
ts
isPending: ComputedRef<boolean>;
Is the query entry currently pending or non existent.
state
ts
state: ComputedRef<
| undefined
| DataState<TData, TError, TDataInitial>>;
state
of the query entry.
See
status
ts
status: ComputedRef<undefined | DataStateStatus>;
status
of the query entry.