returning undefined from server gets stripped on the client

Iibrahimyaacob4/30/2023
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
Nnlucas4/30/2023
That ticket is unrelated to what you're showing
Nnlucas4/30/2023
React Query adds undefined to the type, because until the query has completed, it's undefined
Nnlucas4/30/2023
But this is a react query thing, not to do with tRPC
Iibrahimyaacob5/1/2023
thanks for replying @Nick Lucas . The point is I need that undefined. How do i fix it on the React app ?
Nnlucas5/1/2023
Oh sorry, missed it in the first image
Nnlucas5/1/2023
Could you open a GitHub issue? Looks potentially related to react vs next
Nnlucas5/1/2023
(But the issue template will collect other possibly related information)