useBatchAbortListener
Packageβ
Installationβ
- npm
- Yarn
- pnpm
npm install @rpldy/uploady
yarn add @rpldy/uploady
pnpm add @rpldy/uploady
Detailsβ
type useBatchAbortListener = BatchEventHook;
- See: BatchEventHook
- See: Batch Entity
note
Event Hook - BATCH-ABORT
Called in case abort batch was called on the context or on the uploader.
info
This event can be scoped to a specific batch by passing the batch id as a second parameter
Exampleβ
import { useBatchAbortListener } from "@rpldy/uploady";
const MyComponent = () => {
useBatchAbortListener((batch) => {
console.log(`batch ${batch.id} was aborted`);
});
//...
};