Can you cancel requests from the AWS-SDK?
I want to create a query via the aws-sdk. My code currently looks something like this:
I need to extend the
queryFn to cancel this request if possible, but I'm not sure how this is done with the AWS-SDK, has anyone worked with this before?1 Reply
wise-white•3y ago
If the SDK accepts an abort controller signal then you could use that. Failing that, you can cancel the query via React Query, but it won't actually cancel the in-flight request: https://tanstack.com/query/v4/docs/react/guides/query-cancellation#manual-cancellation