T
tRPC

❓-help

trpc/react-query batching

KKimblis3/19/2023
Hi. How do you deal with batching? If I don't put any maxURLLength then I get an error 404 since it cuts of some of the requests urls... If I put url length then some requests just does not get executed since url is getting too long. I was thinking about max batching size however react-query does not have that... Any ideas on how to best deal with this?
Nnlucas3/19/2023
How are you mounting your backend? I've seen fastify has a pretty small URL limit set which you can raise in its config Other servers YMMV
AKAlex / KATT 🐱3/19/2023
Max url size depends on both the infra, the browser, and the library you choose to use for the backend
KKimblis3/20/2023
Yeah, you were right, it was the problem from fastify, thank you guys ❤️ n1

Looking for more? Join the community!