WHITEBOARD DASHBOARD
LoadMoreButton
Cursor-pagination footer. Renders nothing without a next page or while loading, so drop it in unconditionally.
PREVIEW
simulate loading
SOURCE
import { LoadMoreButton } from '@objectifthunes/whiteboard'
// nextCursor: string | null from your paginated API
<LoadMoreButton
cursor={nextCursor}
loading={isFetching}
onClick={fetchNextPage}
/>NOTES
The whole point is the guard: when cursor is null/undefined or a load is in flight, it renders nothing. So the page drops it in unconditionally after the list and never writes {nextCursor && !loading && ...} — toggle the chip in the demo to see it vanish.
Pair it with ListSkeleton for the first page and keep this button for pages two and up.