Feature request: set a max limit for parallel queries #864
Unanswered
beefancohen
asked this question in
General
Replies: 2 comments 1 reply
-
@TkDodo I wonder if this could be accomplished for mutations using the (fairly) new "mutation scope" feature? 🤔 |
Beta Was this translation helpful? Give feedback.
1 reply
-
We're not gonna build this into react query, because it's outside if it's responsibility. But have a look at TanStack Pacer: https://tanstack.com/pacer/latest it has all the tools you need for throttling, denouncing, queuing and rate limiting. The idea is that you wrap whatever you have in your queryFn with it. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
It is a common pattern to batch parallel queries to reduce load on the server. It'd be great to build this directly into
useQuery
instead of having to maintain that state locally.Beta Was this translation helpful? Give feedback.
All reactions