types not working if input provided
Hey guys, just getting into tRPC: If i add a input to a query, in the client, the types are not working anymore. thats normal? is there any way around this?
path and/or context of your input object cause problems? Or anything else in the input object? That's my only guessexport const notificationRouter = router({
check: publicProcedure
.input(checkNotificationSchema)
.query(({ ctx, input }) => {
....
}), const { data } = useQuery(
trpc.notification.check.queryOptions({ path: pathWithoutLocale, context }),
); "@trpc/client": "^11.4.3",
"@trpc/tanstack-react-query": "^11.4.3", "@hono/trpc-server": "^0.4.0",
"@trpc/server": "^11.4.3",