sachinraja / trpc-playground

playground for running tRPC queries in the browser
MIT License
281 stars 19 forks source link

Moving to trpc-v10 #24

Closed MatsDK closed 1 year ago

MatsDK commented 1 year ago

Currently, trpc-playground won't work if you are using a trpc-v10 server. I created this issue to discuss on how/when we should convert to using trpc-v10.

I think it would be better if we moved to a structure for writing queries like this:

await trpc.users.byId.query({ userId })

Instead of

await query("user.byId", { userId })

What do you think about this? Should we wait until v10 is released? I am happy to work on this.

sachinraja commented 1 year ago

We can definitely do this now. Feel free to do a PR on the next branch! I'll release it on the next npm tag.

sachinraja commented 1 year ago

available at trpc-playground@next