3 ms·
> “We need a sortable table on this route and it should support pagination without a reload, but the pagination needs to be persisted to the address bar for out
by pjc50 5y ago
> “We need a sortable table on this route and it should support pagination without a reload, but the pagination needs to be persisted to the address bar for outside link sharing.”
How would you do that differently in a SPA? Or would that just preclude the link sharing, removing the requirement altogether?
Are SPAs doing client-side pagination or something?
- shadowgovt 5y agoI've seen a variety of solutions used in SPAs, from a thin wrapper around server-side pagination to some extremely fancy client mirroring of server state where the client builds an increasingly larger cache of the data coming from the server, complete with eviction strategies and maximum memory usage limitations, and only has to send a request to server side when it knows it cannot satisfy the client's viewing desires with what it's gathered so far.