How do mutations work with react-query? #1777
Unanswered
Maniktherana
asked this question in
Q&A
Replies: 1 comment
-
On further investigation it seems it's client.POST itself that's returning the above mentioned type instead of the one defined in the generated types |
Beta Was this translation helpful? Give feedback.
0 replies
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.
-
Is this how mutations would work with react-query or am I missing anything?
edit:
using this shows that
{ data }
is of type ofunknown
when that shouldn't be the case based off generated types. if I doconst data =...
it returns something likewould help if the examples could be extended
Beta Was this translation helpful? Give feedback.
All reactions