Repository navigation
improve big routers performance - #1218
Conversation
|
This pull request is being automatically deployed with Vercel (learn more). www – ./www🔍 Inspect: https://vercel.com/trpc/www/GP6EDeVhmSiBfF3wBXjVtJP4rdBp next-prisma-starter – ./examples/next-prisma-starter🔍 Inspect: https://vercel.com/trpc/next-prisma-starter/HyMtXeE1HrZD7SrQGBACSJXATLW7 |
| export type MakeRouter<TRouter extends AnyRouter> = { | ||
| TQueryValues: inferProcedures<TRouter['_def']['queries']>; | ||
| TMutationValues: inferProcedures<TRouter['_def']['mutations']>; | ||
| TError: TRPCClientErrorLike<TRouter>; | ||
| TInfiniteQueryNames: inferInfiniteQueryNames<TRouter['_def']['queries']>; | ||
| TRouter: TRouter; | ||
| }; | ||
|
|
||
| export function createReactQueryHooks2<TQuick extends MakeRouter<any>>() { | ||
| type TRouter = TQuick['TRouter']; | ||
| type TSubscriptions = TRouter['_def']['subscriptions']; | ||
| type TError = TRPCClientErrorLike<TRouter>; | ||
| type TInfiniteQueryNames = TQuick['TInfiniteQueryNames']; | ||
|
|
||
| type TQueryValues = TQuick['TQueryValues']; | ||
| type TMutationValues = TQuick['TMutationValues']; |
There was a problem hiding this comment.
cc @mgreenw
maybe these lookups will make it faster
|
This pull request has been locked because it had no new activity for 30 days. If you think, this PR is still necessary, create a new one with the same branch. Thank you. |
Uh oh!
There was an error while loading. Please reload this page.