Is there a cached query version of usePagniatedQuery?
Convex helpers has a cached version of useQuery (https://github.com/get-convex/convex-helpers/blob/main/packages/convex-helpers/README.md#query-caching) but is there a version that works with paginated queries?
GitHub
convex-helpers/packages/convex-helpers/README.md at main · get-conv...
A collection of useful code to complement the official packages. - get-convex/convex-helpers
3 Replies
hmm. short answer is no
btw, pagintation is something we'll probably refresh soon. we have newer thoughts about the right way to do it that make it less specialized and more composable so that the answer to these questions would be "yes" naturally
Community members have written versions of this before, see https://discord.com/channels/1019350475847499849/1210051159033913354/1210051159033913354 — agree something integrated here would could here, even though there are some different ways it could work.
Something that may help you now is raising up the usePaginatedQuery to a parent component that remains loaded and prop-drilling the data, status, and loadMore function
oh fantastic thanks Jamie. Im thinking it is probably possible to manually do this if you keep track of pages and overlaps and stuff, you could get close. But looking forward to see what your new thinking on this is