Skip to content

API reference > @kontsedal/olas-svelte > InfiniteQueryState

InfiniteQueryState type ​

An infinite query's state as one store value.

Signature:

typescript
export type InfiniteQueryState<TPage, TItem> = QueryState<TPage[]> & {
  pages: TPage[];
  flat: TItem[];
  hasNextPage: boolean;
  hasPreviousPage: boolean;
  isFetchingNextPage: boolean;
  isFetchingPreviousPage: boolean;
};

References: QueryState

Released under the MIT License.