PinkiePie
PinkiePie3d ago

different transformers for different routers

How can I specify a transformer per router? On the client, I use superjson with BatchLink for everything, except file uploads (no superjson, HttpLink). It works fine, but on the backend all routers use superjson, so the returned object has a wrapper with a single json field in it, and TS types are mismatching (TS types assume no wrappers will be there)
0 Replies
No replies yetBe the first to reply to this messageJoin

Did you find this page helpful?