InfiniteQueryResultAccessor

Type Alias: InfiniteQueryResultAccessor<TData, TError>

ts
type InfiniteQueryResultAccessor<TData, TError> = ValueAccessor<InfiniteQueryObserverResult<TData, TError>> & object;
type InfiniteQueryResultAccessor<TData, TError> = ValueAccessor<InfiniteQueryObserverResult<TData, TError>> & object;

Defined in: packages/lit-query/src/createInfiniteQueryController.ts:48

Accessor returned by createInfiniteQueryController.

Call the accessor or read its current property to get the latest infinite query result. The attached methods delegate to the active infinite query observer.

Type Declaration

destroy()

ts
destroy: () => void;
destroy: () => void;

Removes the controller from its Lit host and unsubscribes observers.

Returns

void

fetchNextPage

ts
fetchNextPage: InfiniteQueryObserverResult<TData, TError>["fetchNextPage"];
fetchNextPage: InfiniteQueryObserverResult<TData, TError>["fetchNextPage"];

Fetches the next page for the current infinite query.

fetchPreviousPage

ts
fetchPreviousPage: InfiniteQueryObserverResult<TData, TError>["fetchPreviousPage"];
fetchPreviousPage: InfiniteQueryObserverResult<TData, TError>["fetchPreviousPage"];

Fetches the previous page for the current infinite query.

refetch

ts
refetch: InfiniteQueryObserverResult<TData, TError>["refetch"];
refetch: InfiniteQueryObserverResult<TData, TError>["refetch"];

Refetches the current infinite query.

Type Parameters

TData

TData

TError

TError