tRPCttRPC
Powered by
ibrahimyaacobI
tRPC•3y ago•
7 replies
ibrahimyaacob

returning undefined from server gets stripped on the client

I encounter this issue when working with TRPC React under a Turborepo. But I works fine on Next

I see that its been merged but still appearing on my end
https://github.com/trpc/trpc/issues/4049
image.png
image.png
GitHub
bug: returning `undefined` from server gets stripped on the client ...
Area of Improvement Please add an explanation to Quickstart of why user has type User | undefined on the server: .query((req) => { const input = req.input; const user = userList.find((it) => ...
bug: returning `undefined` from server gets stripped on the client ...
tRPCJoin
Move Fast & Break Nothing. End-to-end typesafe APIs made easy.
5,015Members
Resources
Recent Announcements

Similar Threads

Was this page helpful?

Similar Threads

Prevent client tsc from typechecking the server
🦊�🦊 / ❓-help
15mo ago
useContext utils getData always returning undefined
bigtechguyBbigtechguy / ❓-help
3y ago
Transform server response on the client before caching
João BezerraJJoão Bezerra / ❓-help
2y ago