Paginate or infinite-scroll a large table
Prerequisites
You need a module and a client connected to it. If you don't have them yet, follow the quickstart for your language first.
This guide uses views that take arguments, which were added in SpacetimeDB 2.13. C++ modules can't declare them yet.
In this guide, you'll build a feed of posts that loads 50 posts at a time as the user scrolls. Each client only receives the pages it has loaded, and those pages stay live: new posts show up as soon as they're published. You'll use a view that takes a page number and a page size as arguments.