Skip to content

Add support for passing Cancelation token source #126

Open
@chihabhajji

Description

@chihabhajji

Is your feature request related to a problem? Please describe.
I'm always frustrated when i'm using a debounced input value and the old pending request result overrides the latest value

Describe the solution you'd like
I would like to be able to pass a cancelation source to the queries/mutations

Describe alternatives you've considered
queryClient.cancelQueries

Additional context
I'm aware that queryClient.cancelQueries does the job, but in terms of performance and DX, being able to pass the cancelation token source is more convinient

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions