API reference > @kontsedal/olas-react > UseInfiniteQueryResult
UseInfiniteQueryResult type
What useInfiniteQuery returns: useQuery's fields, the paging state, and the paging actions. The component re-renders only when a field it reads changes.
Signature:
typescript
type UseInfiniteQueryResult<TPage, TItem> = UseQueryResult<TPage[]> & {
pages: TPage[];
flat: TItem[];
hasNextPage: boolean;
hasPreviousPage: boolean;
isFetchingNextPage: boolean;
isFetchingPreviousPage: boolean;
fetchNextPage: () => Promise<void>;
fetchPreviousPage: () => Promise<void>;
};References: UseQueryResult