TripleSpeeder
TripleSpeeder•14mo ago

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
Michal Srb
Michal Srb•14mo ago
Makes sense, will look into it!
ian
ian•14mo ago
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

Did you find this page helpful?