A simple example of how to control and handle with a cursor pagination. This repo uses Tailwind, Sveltekit + TS and Skeleton
In this repo, I'll create a simple pagination component table that can be used by multiple skip/take approaches, different from tanstack, wich doesn't support well custom features.
npm i
npm run dev
Proposal:
type PageSizes = Record< string TableKeyName, number>
e.g: { actorsTable: 10, baseTable: 15}
user open →
    on change pageSize →
        [store pageSize into local] →
            close window
user open →
    [load all stores and send them as cookie (cookies can be stringfied) ]→
For #1:
[in page.ts, load cookies for this table] →
    [send loadedPageSize to page and use onMount functions]
For #2:
[create pagination using pageSize got from cookies] →
    [render table with this paginated data] →
        [ create an action for every pagination event and use it to render elements on server ]