Skip to content

API Documentation / @pinia/colada / UseInfiniteQueryReturn

Interface: UseInfiniteQueryReturn<TPage, TError>

Extends

Type Parameters

TPage

TPage = unknown

TError

TError = ErrorDefault

Properties

asyncStatus

ts
asyncStatus: ComputedRef<AsyncStatus>;

Status of the query. Becomes 'loading' while the query is being fetched, is 'idle' otherwise.

Inherited from

ts
Omit.asyncStatus

data

ts
data: ShallowRef<TPage>;

The last successful data resolved by the query. Alias for state.value.data.

See

state

Inherited from

ts
Omit.data

error

ts
error: ShallowRef<null | TError>;

The error rejected by the query. Alias for state.value.error.

See

state

Inherited from

ts
Omit.error

isDelaying

ts
isDelaying: ShallowRef<boolean>;

Returns whether the query is currently delaying its asyncStatus from becoming 'loading'. Requires the PiniaColadaDelay plugin.

Inherited from

ts
Omit.isDelaying

isLoading

ts
isLoading: ShallowRef<boolean>;

Returns whether the request is currently fetching data. Alias for asyncStatus.value === 'loading'

Inherited from

ts
Omit.isLoading

isPending

ts
isPending: ComputedRef<boolean>;

Returns whether the request is still pending its first call. Alias for status.value === 'pending'

Inherited from

ts
Omit.isPending

isPlaceholderData

ts
isPlaceholderData: ComputedRef<boolean>;

Returns whether the data is the placeholderData.

Inherited from

ts
Omit.isPlaceholderData

loadMore()

ts
loadMore: () => Promise<unknown>;

Returns

Promise<unknown>


state

ts
state: ComputedRef<DataState<TPage, TError, TPage>>;

The state of the query. Contains its data, error, and status.

Inherited from

ts
Omit.state

status

ts
status: ShallowRef<DataStateStatus>;

The status of the query. Alias for state.value.status.

See

Inherited from

ts
Omit.status

Released under the MIT License.