From d15c57fd3dd18a03c8dfced72b42079293cd5883 Mon Sep 17 00:00:00 2001 From: Maximilian Kaske Date: Sun, 16 Mar 2025 15:04:24 +0700 Subject: [PATCH] chore: blog post --- apps/web/src/content/posts/live-mode-infinite-query.mdx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/apps/web/src/content/posts/live-mode-infinite-query.mdx b/apps/web/src/content/posts/live-mode-infinite-query.mdx index f92b654a..75094b4b 100644 --- a/apps/web/src/content/posts/live-mode-infinite-query.mdx +++ b/apps/web/src/content/posts/live-mode-infinite-query.mdx @@ -29,6 +29,9 @@ A timeline sketch of the infinite query behavior: ![Timeline with live mode and load more behavior](/assets/posts/live-mode-infinite-query/infinite-query.png) +- The `nextCursor` is the timestamp of the last item of the page. The "next" page will only fetch items that are older than the `nextCursor`. +- The `prevCursor` is the timestamp of the first item of the page (or the current timestamp). The "prev" page will only fetch items that are newer than the `prevCursor`. + ## API Endpoint Your API endpoint should return at minimum: -- 2.51.2