Skip to content

API reference > @kontsedal/olas-vue > UseInfiniteQueryReturn

UseInfiniteQueryReturn type ​

What useInfiniteQuery returns: useQuery's fields plus the paging state and actions.

Signature:

typescript
export type UseInfiniteQueryReturn<TPage, TItem> = UseQueryReturn<TPage[]> & Refs<{
  pages: TPage[];
  flat: TItem[];
  hasNextPage: boolean;
  hasPreviousPage: boolean;
  isFetchingNextPage: boolean;
  isFetchingPreviousPage: boolean;
}> & {
  fetchNextPage: () => Promise<void>;
  fetchPreviousPage: () => Promise<void>;
};

References: UseQueryReturn, Refs

Released under the MIT License.