Karamazov89
Karamazov8911h ago

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?
0 Replies
No replies yetBe the first to reply to this messageJoin

Did you find this page helpful?