Description
I'm trying to migrate to swr-openapi. I use useSWRMutation(), and specifically am using the isMutating flag on the return value.
Since swr-openapi doesn't expose a useSWRMutation() hook equivalent, what's the correct way to use the isMutating flag using the hooks that are exposed?
Proposal
If this is not possible at the moment, I'd like a new hook creator function that wraps useSWRMutation(), and exposes the isMutating flag.
Extra
Description
I'm trying to migrate to
swr-openapi. I useuseSWRMutation(), and specifically am using theisMutatingflag on the return value.Since
swr-openapidoesn't expose auseSWRMutation()hook equivalent, what's the correct way to use theisMutatingflag using the hooks that are exposed?Proposal
If this is not possible at the moment, I'd like a new hook creator function that wraps
useSWRMutation(), and exposes theisMutatingflag.Extra