createServerSideHelpers
with transformer produces dehydratedState
incompatible with ReactQuery's <HydrationBoundary>
#5622
Unanswered
jeffrey-computers
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
When calling
createServerSideHelpers.dehydrate()
with thetransformer: superjson
arg:An object like this is returned
{ json: { mutations: [], queries: [Array] } }
Whereas ReactQuery's
<HydrationBoundary>
expects the structure{ mutations: [], queries: [ [Object] ] }
Is this an incorrect setup issue?
initTRPC.context().create()
(used forcreateCallerFactory
) &createTRPCReact()
links have a transformer declaredBeta Was this translation helpful? Give feedback.
All reactions