t
tRPC
M
tRPC
•
17mo ago
•
2 replies
Martin
Using superjson transformer makes data empty
Hi
!
I
've been developing using trpc for the past month or so
. It
's been a smooth sail so far
. Suddenly now the
.data
.data
property on trpc queries are empty
.
Checking the network tab the data is definitely there in the response
, it
's just
undefined
undefined
when accessing
query.data
query.data
. After some time debugging
, I removed the
superjson
superjson
transformer from client
& server
, and now things are working again
.
Unfortunately it also means I lack native objects
(like
Date
Date
)
.
Version
:
11.0.0-rc.553
11.0.0-rc.553
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
Why transformer: superjson breaks the POST ?
E
epistol / ❓-help
3y ago
Custom data transformer
S
sh03 / ❓-help
16mo ago
trpc 11 superjson transformer not working with unstable_httpBatchStreamLink
N
NeatZ / ❓-help
13mo ago