I am new in coding and try to learn react.
I try to usemutation hook for my component and in this I need a mutation fn, where I face this Error:
No overload matches this call.
The last overload gave the following error.
Object literal may only specify known properties, and ‘mutationFn’ does not exist in type ‘readonly unknown[]’.ts(2769)
useMutation.d.ts(6, 25): The last overload is declared here.
Does anyone know how to handle it?
Razieh is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
1