Replies: 1 comment 3 replies
-
If you are asking about hinting typescript into what could be the type of error then you can look at the function useMutation<TData = unknown, TError = unknown, TVariables = void, TContext = unknown> so you could do it by providing useMutation<MyReturnDataType, AxiosError>(mutationFn) If it's about something else, then please provide more context. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have a simple mutation:
How can I tell when I use the code like:
That error it's an Axios Error?
Beta Was this translation helpful? Give feedback.
All reactions