Replies: 1 comment 2 replies
-
I have the same question. It would be interesting to do so on a query by query basis, and also on a global basis. The reason I need the feature is to be able to more predictable cache some trpc queries on the CDN layer, with batching that becomes more configuration and sometimes impossible if batched together with a non cachable query. I tried something like this, but it would still batch the query: await trpc(event).someQuery.query(null, {
context: {
skipBatch: true
}
}) @icflorescu curious if there are any plans to add this feature? I'd be open to giving implementing it a try as well if you're open to the feature. I'm not familiar with the code base so any pointers on where would be relevant to check would be appreciated! |
Beta Was this translation helpful? Give feedback.
-
Is there a way to control the batch settings of trpc? I'm reading the trpc docs https://trpc.io/docs/links/splitLink#disable-batching-for-certain-requests, but unsure how to configure it inside trpc-sveltekit. I'm trying to disable batching since i'm having too big requests.
Beta Was this translation helpful? Give feedback.
All reactions