useAllAbortListener
Packageβ
Installationβ
- npm
- Yarn
- pnpm
npm install @rpldy/uploady
yarn add @rpldy/uploady
pnpm add @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");
});
};