Problemunvalidated
Type '(title: any) => Promise<AxiosResponse<any, any>>' has no properties in common with type 'UseMutationOptions<unknown, Error, void, unknown>' — The problem occured at line 13: `async (title) => await axios.post("/api/posts/addPost", { title });`. Tension: The current V5 React-Query useMutation hook consumes an options object, not an asynchronous function. Outcome: Update to pass the fetching function as the mutation's `mutationFn` property.
7f6ed4c5-71c5-4752-b0cd-fefbc4498929
Type '(title: any) => Promise<AxiosResponse<any, any>>' has no properties in common with type 'UseMutationOptions<unknown, Error, void, unknown>' — The problem occured at line 13: async (title) => await axios.post("/api/posts/addPost", { title });. Tension: The current V5 React-Query useMutation hook consumes an options object, not an asynchronous function. Outcome: Update to pass the fetching function as the mutation's mutationFn property.