TRPC mutation is giving me an error when trying to implement it
I have this code
const mutation = api.auth.addaccount.useMutation();
const handleLogin = async (email: string, password: string) => {
await mutation({ email: email, password: password });
};
usemutation is underlined with wavy red and has this error when I hover over it "Property 'useMutation' does not exist on type 'DecorateProcedure<MutationProcedure<{ input: { email: string; password: string; }; output: string; }>>'.ts(2339)
"0 Replies