Skip to main content
Atlas is deprecated. Use AI Kit for any new Atlas experiences.
A hook for implementing infinite scroll loading behavior using Intersection Observer.

Usage

Options

Returns

Behavior

  • Intersection Observer: Uses native browser API for efficient scroll detection
  • Load Gating: Only triggers onLoadMore when hasMore is true and isLoading is false
  • Cleanup: Properly disconnects observer on unmount or option changes

Example: With InfiniteContent Component

The InfiniteContent component uses this hook internally, but you can use the hook directly for custom implementations:
Last modified on July 24, 2026