BUG: useSuspenseQuery does not forward TRPC options to context
When using useSuspenseQuery, the TRPC options are not forwarded to the context:
export const createTRPCContext = cache( async (opts?: FetchCreateContextFnOptions) => { // opts is undefined when called from a useSuspenseQuery console.log(opts)
return {} } )
Seems like this was a solved issue (https://github.com/trpc/trpc/issues/6133) but now happening again with the new TanStack Query integration. Does anyone have a workaround for this?