T
TanStackthis hour
correct-apricot

Best practices for Infinite lists with TanStackDB

Hey guys, sorry if this question has already been answered but I haven't found anything concrete in discord history. Is there a best practice solution for implementing an infinite list with TanStack DB and electricSQL? Based on my reading, it looks like there isn't a TanStackDB liveQuery that is similar to useInfiniteQuery .I'm going to use orderBy, limit and offset but is there anything else you'd recommend when implementing an infinite list with TanStackDB?
2 Replies
robust-apricot
robust-apricot20h ago
we're actively working on a solution to this — follow this issue for updates https://github.com/TanStack/db/issues/613
GitHub
useLiveInfiniteQuery · Issue #613 · TanStack/db
We want an API that's nearly identical to TanStack Query's useInfiniteQuery except powered by DB's live queries. It'll take advantage of #612 (if the collection is using that) to lo...
correct-apricot
correct-apricotOP19h ago
Thanks!

Did you find this page helpful?