Call a loader when a sentinel at the end of a list scrolls near the view, again after each load while it is still visible, and stop when there is no more.
pnpm dlx shadcn@latest add "https://ui.tealmac.com/r/use-infinite-scroll.json"