Open lkarcol opened 5 hours ago
@lkarcol, thank you for the question. <service>.<operatiom>.useMutation(...)
hook requires a first argument to be a predefined parameter, or undefined
.
In your case, you could use:
const { mutateAsync: updateAppearance } =
apiClient.page.updatePage.useMutation(undefined, {
onSuccess(data, variables, context) {
// ...
},
});
updateAppearance({...}, {
onSuccess(data, variables, context) {
// ...
},
});
@radist2s Thanks for response,
this is how I used it in version 1.x, but for some reason it doesn't work for me now.
is it possible that I did the migration to v 2.x wrong?
@lkarcol, did you apply codemode to the migration?
Hello,
version: 2.0.0-next.12
callback parameters are not more typed ? (data,variables)
This works