trpc-playground
trpc-playground copied to clipboard
Bring back option turning request batching off
I noticed previous versions had an option to batch requests, could you add that back to 1.0.0
.
The batching option was removed in this commit, but it seems like a httpBatchLink
was added here. So if you want to batch requests you should be able to do this:
await Promise.all([
trpc.getGreeting.query({ name }),
trpc.getFarewell.query({ name }),
])
Hopefully this helps.