ibrahimyaacobI
tRPC3y 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
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 ...
Was this page helpful?