TRPC with MSW
Does anyone have a basic example on how to set up MSW in a React Vite TRPC env?
My main question is, how to use MSW to mock my TRPC requests. In a non TRPC environment my handlers looks like this:
But TRPC request looks different than a standard fetch request:
How do I create a handler to mock this TRPC request?
4.8KMembers
View on DiscordMore Posts
Revalidate / invalidate in server componentsIs there a solution for TRPC query invalidation (or revalidating), passing the actions from the clieTypescript type error with latest versionI'm initialising a project with trpc v11 and I'm trying to strictly follow the documentation for reaDon't understand cacheHow come my API is still getting called when it's already been called with other inputs?
Ex:
1. api The inferred type of this node exceeds the maximum length the compiler will serialize.I'm facing this issue. The inferred type of this node exceeds the maximum length the compiler will s