\r\n\t\t\t\u003C/QueryClientProvider>\r\n\t\t\u003C/trpc.Provider>\r\n\t\u003C/React.StrictMode>,\r\n\tdocument.getElementById('root')\r\n)\r\n```\r\n\r\nAnd this is how I am using the hooks inside the\r\n```tsx\r\nconst AppHeader: React.FC = () => {\r\n\tconst { data: school, isLoading } = trpc.useQuery([\r\n\t\t'school.get',\r\n\t\t{ id: schoolId }, //schoolId is a bigint here\r\n\t])\r\n\r\n\treturn \u003C>\u003C/>\r\n}\r\n```\r\nAnd i'm getting this error `Uncaught TypeError: BigInt value can't be serialized in JSON` which shouldn't happen if the transformer was being called. \r\n",[],1979,"react hooks not using data transformer","2022-06-13T23:17:22Z","https://github.com/trpc/trpc/issues/1979",0.7979702,{"description":3104,"labels":3105,"number":3106,"owner":3022,"repository":3022,"state":3047,"title":3107,"updated_at":3108,"url":3109,"score":3110},"### Describe the feature you'd like to request\n\nstricter typings for [transformTRPCResponseItem](https://github.com/trpc/trpc/blob/c1b3844de8f366fb8c0409e7a12c5a104e8616ab/packages/server/src/internals/transformTRPCResponse.ts#L4)\n\n### Describe the solution you'd like to see\n\nInference for the `router` parameter in the `transformTRPCResponseItem` function.\r\nSomehow typing `_def` to have a `transformers` field of type [`CombinedDataTransformer`](https://github.com/trpc/trpc/blob/c1b3844de8f366fb8c0409e7a12c5a104e8616ab/packages/server/src/transformer.ts#L14).\n\n### Desribe alternate solutions\n\nI worked around this in my app ([a template that wires up vite-electron-trpc-prisma ](https://github.com/NickyMeuleman/electron-trpc-prisma)) where I had to copypaste the `transformTRPCResponseItem` function by using the appRouter for my app directly, but that wouldn't be possible in the library code.\n\n### Additional information\n\n\r\n\r\nI don't have much TypeScript knowledge, and am wondering what the recommended way to achieve this might be.\n\n### 👨👧👦 Contributing\n\n- [X] 🙋♂️ Yes, I'd be down to file a PR implementing this feature!",[],2804,"feat: typings for transformTRPCResponseItem","2022-12-11T18:01:47Z","https://github.com/trpc/trpc/issues/2804",0.8000173,["Reactive",3112],{},["Set"],["ShallowReactive",3115],{"$fTRc1wZytZ_XrK4EfJfei_Sz-An4H4Yy6syhVxH_PVJc":-1,"$fewbU6aUaxwMcwpxS_fsHfJ3AWrEuwBTsHUwppup6T9Q":-1},"/trpc/trpc-openapi/275"]