maloguertin/msw-trpc

Merged routes not working with latest trpc and msw-trpc

madi-tracksuit opened this issue · 2 comments

Describe the bug
When using msw-trpc with the latest version of trpc and merged / sub routers, every route exposes an (errornous) mutation method instead of the subrouter

To Reproduce
Steps to reproduce the behavior:

  1. Create a trpc router with nested/merged routers
  2. Setup msw-trpc
  3. Try to access sub routers
  4. See error

I just created a branch to test it with the latest trpc: https://github.com/maloguertin/msw-trpc/tree/nested-merged-router
It seems to be working?

Found it, I was on the next (v11) versions of trpc, downgrading back to v10 sorted it. Sorry for the false alarm!