How to use useMutation with convex-ents. API object TYPE error
const storeUser = useMutation(api.users.store);but i get this type error. the function still runs and works as expected.
Property 'users' does not exist on type '{ clerkBackend: { AdminGetUserList: FunctionReference<"action", "public", {}, { id: string; email: string | undefined; firstName: string | null; }[] | null>; }; messageActions: { ...; }; }'it cannot find the api because i have replaced...
// import { mutation, query } from './_generated/server';with
import { mutation } from './functions';this is part of my functions.ts
how can i fix this? As soon as put this back in
`
everything works.
