Skip to content

Pagination queries #95

Answered by cyco130
tigawanna asked this question in Q&A
Discussion options

You must be logged in to vote

That's true, there's no useInfiniteQuery yet.

react-query has lots and lots of features. It's not really wise (or feasible) to replicate all of its functionality in Rakkas. For simple cases, you can put pagination parameters into the query key (e.g .articles/${pageNo}). For more advanced cases there is a full react-query integration example. Hopefully v0.7 will have a better integration with plugins/recipes.

I wouldn't object if someone came up with a useInfiniteQuery implementation that didn't increase the bundle size when not used and that included tests with good coverage but it's not a priority right now.

In fact, I'm extracting the mini react-query bits into a separate library. Maybe…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by tigawanna
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants