Skip to main content

useBatchFinishListener

Package​

@rpldy/uploady

Installation​

npm install @rpldy/uploady

Details​

type useBatchFinishListener = BatchEventHook;
note

Event Hook - BATCH-FINISH

Called when batch items finished uploading.

info

This event can be scoped to a specific item by passing the item id as a second parameter

Example​

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

const MyComponent = () => {
useBatchFinishListener((batch, options) => {
console.log(`batch ${batch.id} finished uploading`);
});

//...
};