Skip to content

Why do merged routers use . and not /? #751

Answered by KATT
mmkal asked this question in Q&A
Discussion options

You must be logged in to vote

You are able to name your tRPC-router [...trpc].tsx and use / instead.

I actually had this originally; the reason I changed this myself is that you see the full path in the inspector rather than just the end part.

Note: I have not tested /-paths since adding batching support.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@mmkal
Comment options

mmkal Aug 3, 2021
Collaborator Author

@KATT
Comment options

Answer selected by mmkal
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants