I follow the code in videos and occur this error when implement AddTodoContext to useMutation function during optimistic updae section. im currently on creating useAddTodo file but still face the same 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’.
The last overload is declared here.
Parameter ‘savedTodo’ implicitly has an ‘any’ type.
Parameter ‘newTodo’ implicitly has an ‘any’ type.
Parameter ‘error’ implicitly has an ‘any’ type.
Parameter ‘newTodo’ implicitly has an ‘any’ type.
Parameter ‘context’ implicitly has an ‘any’ type.