TRPCClientError prior to the request being sent (v11, App Router)
Anyone else had this occur where you just get a TRPCClientError without the request even being visible in the network tab?
I'm moving my app from pages router to app router, and testing client-side fetching with prefetching from the server.
Consider the code below as an example
1 Reply
Setup was mainly inspired upon how Julius has configured create-t3-turbo
enabled: (op) => env.NODE_ENV === "development" || (op.direction === "down" && op.result instanceof Error),
☝️ env. contained server-only stuff but that didnt propagate the error properly when using it in loggerLink
FUUUUUCK ME