URL-Driven Pagination in Remix: Loaders, Search Params, and Shareable Pages
Keep pagination state in the query string instead of React state: a Remix loader reads ?page=N, validates it, fetches the slice, and plain links re-run the loader—giving you deep links, server rendering, and working back buttons.