Feature request: set a max limit for parallel queries #864
-
It is a common pattern to batch parallel queries to reduce load on the server. It'd be great to build this directly into |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
@TkDodo I wonder if this could be accomplished for mutations using the (fairly) new "mutation scope" feature? 🤔 |
Beta Was this translation helpful? Give feedback.
-
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.
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.