t
tRPC
I
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
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
)
=
>
.
.
.
tRPC
Join
Move Fast & Break Nothing. End-to-end typesafe APIs made easy.
5,015
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Recent Announcements
Similar Threads
Was this page helpful?
Yes
No
Similar Threads
Prevent client tsc from typechecking the server
�
🦊 / ❓-help
15mo ago
useContext utils getData always returning undefined
B
bigtechguy / ❓-help
3y ago
Transform server response on the client before caching
J
João Bezerra / ❓-help
2y ago