tRPCttRPC
Powered by
MartinM
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
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

Why transformer: superjson breaks the POST ?
epistolEepistol / ❓-help
3y ago
Custom data transformer
sh03Ssh03 / ❓-help
16mo ago
trpc 11 superjson transformer not working with unstable_httpBatchStreamLink
NeatZNNeatZ / ❓-help
13mo ago