Circle V2 API Docs
    Preparing search index...
    • Renders an infinite-scroll list with automatic load-more detection.

      Handles loading, empty, and paginated states. Place inside a scrollable container — the built-in LoadMoreSentinel triggers fetchNextPage when the user scrolls near the bottom.

      Type Parameters

      • T

      Parameters

      Returns
          | string
          | number
          | bigint
          | boolean
          | Iterable<ReactNode, any, any>
          | Promise<AwaitedReactNode>
          | Element
          | null

      <InfiniteLoader
      items={items}
      isLoading={query.isLoading}
      hasMore={query.hasNextPage}
      isFetchingNextPage={query.isFetchingNextPage}
      fetchNextPage={query.fetchNextPage}
      loadingFallback={<Skeleton />}
      emptyFallback={<EmptyState title="Nothing here" />}
      >
      {(items) => items.map(item => <ListItem key={item.id} {...item} />)}
      </InfiniteLoader>