How to use useSWRMutation with Typescript ? #2774
Replies: 1 comment 1 reply
-
useSWRMutation<Data = any, Error = any, SWRMutationKey extends Key = Key, ExtraArg = never, SWRData = Data> so in your case you want something like useSWRMutation<TableResponse, any, any, TableRequest>, sorry for late response hope someone finds it useful in the future |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Beta Was this translation helpful? Give feedback.
All reactions