You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've been working with Convex in Svelte and noticed that usePaginatedQuery is only available in the React library. Pagination is pretty crucial for many of our projects, and I think having this feature in the Svelte version would be super helpful for the community.
Would love to see this added to maintain feature parity with React. Let me know if there's anything I can do to help make this happen!
Thanks for considering!
The text was updated successfully, but these errors were encountered:
The architecture is such that today the state for pagination is held in usePaginatedQuery. It should either be moved into the client or a stateful helper, or we need to write it again for Svelte.
We can write this again for Svelte, it shouldn't be bad! The gist is we need a new function like useQuery() that runs many other useQuery() hooks. Call it usePaginatedQuery(). It calls useQuery() with the passed-in arguments, then when a loadMore function is called it runs an additional useQuery() as well. All the results for all useQuery() functions are combined and returnd from usePaginatedQuery().
Hey Convex team! 👋
I've been working with Convex in Svelte and noticed that usePaginatedQuery is only available in the React library. Pagination is pretty crucial for many of our projects, and I think having this feature in the Svelte version would be super helpful for the community.
Would love to see this added to maintain feature parity with React. Let me know if there's anything I can do to help make this happen!
Thanks for considering!
The text was updated successfully, but these errors were encountered: