Properly use mutation with client-preset and react-query
#9435
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Thanks for this amazing library, it's really useful.
So, I have been testing it and it's working great for queries but I am having issues while doing mutation.
This is how I am using the mutation:
Then I am calling the the
mutatefunctionThe problem is that I cannot pass the variables in the
mutatefunction, it just won't accept themIf I do this:
I get,
Argument of type '{ dataset_data: { title: any; description: any; }; }' is not assignable to parameter of type 'void'.tsIs there something wrong that I am doing here?
Beta Was this translation helpful? Give feedback.
All reactions