3 ms·
You generally don’t, unless you want to linearly scan through n pages. If your API is using offset or page numbers and the underlying collection is also having
by tshaddox 4y ago
You generally don’t, unless you want to linearly scan through n pages. If your API is using offset or page numbers and the underlying collection is also having items added or removed, the behavior is undefined or straight up wrong. I think it’s okay to use offsets or page numbers in cases where the collection is static or where it’s acceptable to occasionally skip over an item or see a duplicate item while paginating.
- Aeolun 4y agoOr where you want people to be able to send each other links of the ‘look on page 11’ kind.
- scottbruin 4y agoGoing with the point re: cursor links, if your URLs look something like this then they would be shareable and more stable than page=11. ?startWith=<item_id>&sortBy=<alpha|datetimedesc|whatever>
- Aeolun 4y agoJust impossible to navigate to by voice. In the office here people often call out the number of the page, but nobody will call out cursor AHgeuusn5d