Skip to main content

useAllAbortListener

Package​

@rpldy/uploady

Installation​

npm install @rpldy/uploady

Details​

type useAllAbortListener = (cb: () => void) => void;

Called in case abort was called for all running uploads

Abort can be called on the context or on the uploader.

Example​

import { useAllAbortListener } from "@rpldy/uploady";

const MyComponent = () => {
useAllAbortListener(() => {
console.log("abort all was called");
});
};