Teodorant, Tech-PriestT
tRPC2y ago
1 reply
Teodorant, Tech-Priest

Cannot use usemutation in my nextjs/t3 project

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)
"
Was this page helpful?