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