canastro
`useSuspenseQuery` returns unexpected `.json` and `.metadata` (SuperJSON)
I'm following the docs here: https://trpc.io/docs/client/tanstack-react-query/server-components
I have this query client builder:
I have this prefetch:
And when, on my client component, I use a suspense query:
I receive an object with
.json
and .metadata
which seem to be be stuff from superJSON, but that are not properly typed. I haven't seen this in previous versions... it looked like the values were properly deserialized before being returned, but now I seem to receive the raw superjson value.... am I missing something?4 replies