-
Notifications
You must be signed in to change notification settings - Fork 36
Open
Description
I have just noticed that v2 now wraps the object data in an object under a "json" key when using superjson as the transformer.
Is there a way to return the data object as it is unwrapped to avoid the client from having to extract it from the json key?
This is how I am currently setting up trpcMsw:
const trpcMsw = createTRPCMsw<AppRouter>({
links: [httpLink({ url: `http://${baseUrl}` })],
transformer: {
input: superjson,
output: superjson,
},
});
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels