\r\n \u003CView style={styles.container}>\r\n \u003CText>Open up App.tsx to start working on your app!\u003C/Text>\r\n \u003CRetryLoader>\r\n \u003CSomething/>\r\n \u003C/RetryLoader>\r\n \u003C/View>\r\n \u003C/QueryClientProvider>\r\n \u003C/trpc.Provider>\r\n );\r\n}\r\n```\r\n\r\ntrpc set up like:\r\n\r\n```typescript\r\nimport { createTRPCReact } from '@trpc/react';\r\nimport type {AppRouter} from \"../../gateway/src/router\"\r\n\r\nexport const trpc = createTRPCReact\u003CAppRouter>();\r\n```\r\n\r\nThe server is standard:\r\n\r\n```typescript\r\nimport {t} from './trpc';\r\nimport {postsRouter} from \"../posts/router\"\r\n\r\nexport const appRouter = t.router({\r\n posts: postsRouter\r\n})\r\n\r\nexport type AppRouter = typeof appRouter\r\n```\r\n\r\n\r\n\r\n### Additional information\r\n\r\n_No response_\r\n\r\n### 👨👧👦 Contributing\r\n\r\n- [X] 🙋♂️ Yes, I'd be down to file a PR fixing this bug!",[],2718,"bug: Data seems to be incorrectly defined in latest v10","2022-10-04T00:17:50Z","https://github.com/trpc/trpc/issues/2718",0.6571808,{"description":3097,"labels":3098,"number":3099,"owner":3030,"repository":3030,"state":3055,"title":3100,"updated_at":3101,"url":3102,"score":3103},"### Provide environment information\r\n\r\n``` \r\nSystem:\r\n OS: macOS 12.2.1\r\n CPU: (10) arm64 Apple M1 Max\r\n Memory: 131.52 MB / 32.00 GB\r\n Shell: 3.2.57 - /bin/bash\r\n Binaries:\r\n Node: 18.8.0 - ~/.local/share/nvm/v18.8.0/bin/node\r\n Yarn: 1.22.19 - ~/.local/share/nvm/v18.8.0/bin/yarn\r\n npm: 8.18.0 - ~/.local/share/nvm/v18.8.0/bin/npm\r\n Browsers:\r\n Chrome: 106.0.5249.103\r\n Firefox: 105.0.2\r\n Safari: 15.3\r\n npmPackages:\r\n @trpc/client: ^10.0.0-proxy-beta.17 => 10.0.0-proxy-beta.17\r\n```\r\n\r\n\r\n### Describe the bug\r\n\r\nTypescript can't complete the typing of a query, see discussion https://github.com/trpc/trpc/discussions/2963\r\n\r\n\r\n`Property 'subscribe' does not exist on type 'DecoratedProcedureRecord\u003Cunknown, BuildProcedure\u003C\"subscription\", { _config: RootConfig\u003C{ ctx: {}; meta: {}; errorShape: never; transformer: CombinedDataTransformer; }>; _ctx_out: {}; _input_in: unique symbol; _input_out: unique symbol; _output_in: u\r\n nique symbol; _output_out: unique symbol; _meta: {}; }, Observable\u003C....'.`\r\n\r\n### Link to reproduction\r\n\r\nhttps://github.com/Lilja/trpc-v10-server-needed\r\n\r\n### To reproduce\r\n\r\nOpen up `src/index.ts` and modify the `type {AppRouter}` import, point it to the trpc repo OR a another router.\r\n\r\n### Additional information\r\n\r\n_No response_\r\n\r\n### 👨👧👦 Contributing\r\n\r\n- [ ] 🙋♂️ Yes, I'd be down to file a PR fixing this bug!",[],2972,"bug: @trpc/server needed in the frontend for types to work","2022-10-11T08:18:00Z","https://github.com/trpc/trpc/issues/2972",0.6582977,{"description":3105,"labels":3106,"number":3107,"owner":3030,"repository":3030,"state":3055,"title":3108,"updated_at":3109,"url":3110,"score":3111},"### Provide environment information\n\nSystem:\r\n OS: macOS 12.5.1\r\n CPU: (10) arm64 Apple M1 Max\r\n Memory: 11.72 GB / 64.00 GB\r\n Shell: 5.8.1 - /bin/zsh\r\n Binaries:\r\n Node: 16.15.1 - ~/.nvm/versions/node/v16.15.1/bin/node\r\n npm: 8.11.0 - ~/.nvm/versions/node/v16.15.1/bin/npm\r\n Browsers:\r\n Chrome: 104.0.5112.101\r\n Firefox: 103.0.2\r\n Safari: 15.6.1\n\n### Describe the bug\n\nCannot join routers across files, making organization useless.\r\n\r\nIn the example 'getUsers' only works if it's in the same file.\n\n### To reproduce\n\n**Index**\r\n\r\n```\r\nimport * as trpc from '@trpc/server';\r\nimport { Context } from 'vm';\r\nimport { getUser } from './get-user';\r\n\r\n// Works\r\n// let appRouter = trpc.router();\r\n// .query('getUser', {\r\n// async resolve() {\r\n// const request = (await User.findOne({ where: { id: 'test' } }))!;\r\n// return request;\r\n// },\r\n// });\r\n\r\n// \"Endpoints\", the name is the same as the call but with starting lower case.\r\n// For example CreateUser -> createUser\r\n\r\nconst createRouter = () => {\r\n return trpc.router\u003CContext>();\r\n};\r\n\r\nlet userRouter = createRouter();\r\n\r\n// User\r\ngetUser(userRouter);\r\n\r\nexport const initTrpc = () => {\r\n // Empty init to call the file.\r\n};\r\n\r\nconst appRouter = createRouter();\r\nappRouter.merge(userRouter);\r\n\r\nexport { appRouter };\r\n\r\nexport type AppRouter = typeof appRouter;\r\n```\r\n\r\n**getUsers.ts is broken**\r\n\r\n```\r\nimport { Context } from 'vm';\r\nimport User from '../models/user';\r\nimport * as trpc from '@trpc/server';\r\nimport { Router } from '@trpc/server/dist/declarations/src/router';\r\n\r\nexport const initGetUser = (appRouter) => {\r\n // appRouter.query('getUser', {\r\n // input: z.object({\r\n // id: z.string(),\r\n // }),\r\n // async resolve({ input }) {\r\n // const user = (await User.findOne({ where: { id: input.id } }))!;\r\n // return user;\r\n // },\r\n // });\r\n};\r\n\r\nexport const getUser = (\r\n router: Router\u003CContext, Context, {}, {}, {}, {}, trpc.DefaultErrorShape>,\r\n) => {\r\n return router.query('getUser', {\r\n async resolve() {\r\n const request = (await User.findOne({ where: { id: 'test' } }))!;\r\n return request;\r\n },\r\n });\r\n};\r\n```\r\n\n\n### Additional information\n\n_No response_\n\n### 👨👧👦 Contributing\n\n- [ ] 🙋♂️ Yes, I'd be down to file a PR fixing this bug!",[],2580,"bug: cannot chain query or mutation across files","2022-08-28T20:19:59Z","https://github.com/trpc/trpc/issues/2580",0.658538,{"description":3113,"labels":3114,"number":3115,"owner":3030,"repository":3030,"state":3055,"title":3116,"updated_at":3117,"url":3118,"score":3119},"### Provide environment information\r\n\r\n```\r\n\r\n System:\r\n OS: macOS 12.5.1\r\n CPU: (8) arm64 Apple M1\r\n Memory: 157.83 MB / 16.00 GB\r\n Shell: 5.8.1 - /bin/zsh\r\n Binaries:\r\n Node: 16.17.0 - ~/.nvm/versions/node/v16.17.0/bin/node\r\n Yarn: 1.22.19 - /opt/homebrew/bin/yarn\r\n npm: 8.19.1 - ~/.nvm/versions/node/v16.17.0/bin/npm\r\n Watchman: 2022.09.12.00 - /opt/homebrew/bin/watchman\r\n Browsers:\r\n Brave Browser: 106.1.44.105\r\n Chrome: 105.0.5195.125\r\n Firefox: 105.0.1\r\n Safari: 16.0\r\n npmPackages:\r\n @trpc/react: ^10.0.0-proxy-beta.15 => 10.0.0-proxy-beta.15\r\n react: 18.0.0 => 18.0.0 \r\n typescript: ~4.7.4 => 4.7.4 \r\n\r\n```\r\n\r\n### Describe the bug\r\n\r\nIf I create a trpc react proxy and client like:\r\n\r\n```typescript\r\nexport const trpc = createTRPCReact\u003CUserRouter>()\r\nexport const trpcClient: TRPCClient\u003CUserRouter> = trpc.createClient({\r\n links: [\r\n httpBatchLink({\r\n url: \"http://localhost:3000/user\"\r\n }),\r\n ],\r\n})\r\n```\r\n\r\nAnd try to use the `trpcClient` directly, it does not have the correct types:\r\n\r\n```typescript\r\n const createAccountResult = await trpcClient.mutation(\"account.create\")\r\n```\r\n\r\nWill return: `TS2345: Argument of type 'string' is not assignable to parameter of type 'never'.`\r\n\r\n### Link to reproduction\r\n\r\nhttps://stackblitz.com/github/trpc/examples-next-minimal-starter\r\n\r\n### To reproduce\r\n\r\nSee above\r\n\r\n### Additional information\r\n\r\n_No response_\r\n\r\n### 👨👧👦 Contributing\r\n\r\n- [X] 🙋♂️ Yes, I'd be down to file a PR fixing this bug!",[],2922,"bug: `TRPCClient` from `createTRPCReact\u003CRouterType>().createClient` is incorrectly typed","2022-10-05T23:29:07Z","https://github.com/trpc/trpc/issues/2922",0.6618585,["Reactive",3121],{},["Set"],["ShallowReactive",3124],{"$fTRc1wZytZ_XrK4EfJfei_Sz-An4H4Yy6syhVxH_PVJc":-1,"$fV3qqlfZWk-FiH-bshRvt1tg3G69Nu0S7Nw-2QFOIVKo":-1},"/trpc/trpc/3089"]