-
-
Notifications
You must be signed in to change notification settings - Fork 558
Open
Labels
enhancementNew feature or requestNew feature or requestswr-openapiRelevant to swr-openapi libraryRelevant to swr-openapi library
Description
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
- I’m willing to open a PR (see CONTRIBUTING.md)
thebat93, burkov, wwwenjie and carlreid
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requestswr-openapiRelevant to swr-openapi libraryRelevant to swr-openapi library