tRPCttRPC
Powered by
thecahnartistT
tRPC•14mo ago•
3 replies
thecahnartist

Turn off batching for some queries?

Hiya, I have a use case where I want to set headers on specific queries (specifically
cache-control private
cache-control private
for authenticated data that's requested frequently by the client across page reloads) but because of batching, I'd need to make sure requests to these queries are never batched so the headers only refer to the one query at a time.

Are there any tricks for this? Or any better approaches for my use case?
tRPCJoin
Move Fast & Break Nothing. End-to-end typesafe APIs made easy.
5,015Members
Resources
Recent Announcements

Similar Threads

Was this page helpful?

Similar Threads

Getting 413 error in Vercel when batching several queries (using Next pages router)
rodrigowplRrodrigowpl / ❓-help
3y ago