preloadPaginatedQuery
So, I'm looking at the new preloadQuery. I think it is really great 🙂 But I'm missing one thing: Can we also have a preloadPaginatedQuery? Ideally I would preload the first results in the server component and then on the client can just trigger
loadMore
when necessary.2 Replies
Makes sense, will look into it!
In case this helps for now: you can fetch the first page of a paginatedQuery with regular preloadQuery (or
useQuery
) - the usePaginatedQuery is just a convenience for managing (concatenating) the pages and their queries