Usage
Options
Returns
Behavior
- Intersection Observer: Uses native browser API for efficient scroll detection
- Load Gating: Only triggers
onLoadMorewhenhasMoreis true andisLoadingis false - Cleanup: Properly disconnects observer on unmount or option changes
Example: With InfiniteContent Component
TheInfiniteContent component uses this hook internally, but you can use the hook directly for custom implementations: