useBatchFinishListener
Packageβ
Installationβ
- npm
- Yarn
- pnpm
npm install @rpldy/uploady
yarn add @rpldy/uploady
pnpm add @rpldy/uploady
Detailsβ
type useBatchFinishListener = BatchEventHook;
- See: BatchEventHook
- See: Batch Entity
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`);
});
//...
};