Closed alitnk closed 1 year ago
This'll probably help with the PR as a reference: https://github.com/t3-oss/create-t3-turbo/pull/110
Good find!
Re: keep CUA updated with CT3A I don't think it should be our goal to be synced with CT3A, and I think the choice of tamagui over nativewind is an example of that. However, if CT3A makes a change that we think will be better for CUA, we should definitely learn from that!
Re: api.bla vs trpc.bla: I personally like having the trpc name for a couple reasons:
thoughts?
Fair points!
The only benefit I can think of is not having multiple files with the trpc name.
trpc.ts
- the client utiltrpc.ts
- the backend util[trpc].ts
- the /api
dynamic route (it's clear what this one is though)But that's not the end of the world... Still better than next.js codebases with hundreds of index.tsx files.
Yea that's true! I say we leave as it is for now.
If api.bla
becomes a standard when using trpc and people find trpc.bla
archaic or confusing then we can make that change!
I'll close this for now!
Since this got merged, create-t3-app creates a
api.ts
file instead oftrpc.ts
for the client, allowing us to writeapi.bla.useQuery()
instead oftrpc.bla.useQuery()
. I'm not aware if there are any other changes as well though.I could make a PR for this but I guess it really depends if we're trying to keep CUA updated with CT3A or not.