Replies: 1 comment
-
|
Good catch documenting this — the React Compiler interaction is a subtle one. For anyone else hitting this: the reason The tRPC client is a Proxy object, so property access like The Alternatively, if you're using the newer |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
This is for trpc
v11.x.Just putting this here in case somebody else runs into this issue. Found some other mentions of this error online but they were all related to mismatched versions of trpc on the server and client. In my case it was actually because I didn't properly wrap the
createTRPCClientcall in auseStatelike the docs recommend:and the optimizations from the React Compiler ends up sending the
trpcClientdown a code path that callstrpcClient.name.Beta Was this translation helpful? Give feedback.
All reactions