Skip to content

Wrapper for useSWRMutation #2367

Open
Open
@jkjustjoshing

Description

@jkjustjoshing

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestswr-openapiRelevant to swr-openapi library

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions