How to get data type from onMutate function in useMutation
When you try to retrieve the router inputs, typescript has to analyze the entire definition of that router, which includes the function definition ... It won't just read the .input(loginSchema) and be like ok, I'm done, here you go
I know this sounds dumb but try reloading/restarting vscode if you haven't already. more often than not whenever I see any my reflex is to reload vscode
I'm a bit late but perhaps you're looking for mutations , not queries. Makes no sense to have a logout as a query.
Queries are data loaders (get data)
Mutations are actions (do something)