chris on Nostr: If anyone is looking to: - show x results per page (not infinite scroll feed) - save ...
If anyone is looking to:
- show x results per page (not infinite scroll feed)
- save paginated state when navigating to a post and back
- reduce number of calls that need to be made to relays
checkout how I'm doing pagination for notebin snippets:
https://notebin.io/archiveI think this is about as good as you can do when you only have the created_at timestamp to work with.
Published at
2025-04-07 06:29:34Event JSON
{
"id": "f30735190ff614e20984e791470e7e3b71ce8a431d68a73b2f376b0cc45a8709",
"pubkey": "220522c2c32b3bf29006b275e224b285d64bb19f79bda906991bcb3861e18cb4",
"created_at": 1744007374,
"kind": 1,
"tags": [
[
"r",
"wss://relay.chrisatmachine.com/"
],
[
"r",
"wss://relay.primal.net/"
],
[
"r",
"wss://relay.damus.io/"
]
],
"content": "If anyone is looking to: \n\n- show x results per page (not infinite scroll feed)\n- save paginated state when navigating to a post and back\n- reduce number of calls that need to be made to relays\n\ncheckout how I'm doing pagination for notebin snippets:\n\nhttps://notebin.io/archive\n\nI think this is about as good as you can do when you only have the created_at timestamp to work with.",
"sig": "82d132eaa34bcbe9424c74b804be847b97c294457f5a10f36dce1781b8d41e1d824b81cf9e8f268652cee7adb0373cd19abd84fac9c8427b49dffdc8b4f1e82a"
}