Skip to content
This repository was archived by the owner on Nov 11, 2023. It is now read-only.
This repository was archived by the owner on Nov 11, 2023. It is now read-only.

useMutate should take a debounce parameter #379

@malko

Description

@malko

Is your feature request related to a problem? Please describe.
I find useful the debounce parameter in useGet and would appreciate to have it on useMutate too, or i'm i missing the point to achieve this.

Describe the solution you'd like
I'd like to be able to pass a debounce parameter to useMutate like this:

const {mutate, error} = useMutate({
  verb: 'PATCH',
  path: ({id}) => `/entity/${id}`,
  debounce: true
})

Describe alternatives you've considered
using useDebounceCallback may be an option, but it force me to have another dependencies I don't require otherwise at the moment.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions