openapi-react-query-codegen icon indicating copy to clipboard operation
openapi-react-query-codegen copied to clipboard

Add support for passing Cancelation token source

Open chihabhajji opened this issue 1 year ago • 0 comments

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

chihabhajji avatar Jun 19 '24 13:06 chihabhajji