Skip to main content

useBatchCancelledListener

Package​

@rpldy/uploady

Installation​

npm install @rpldy/uploady

Details​

type useBatchCancelledListener = BatchEventHook;
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`);
});

//...
};