useItemFinishListener
Packageβ
Installationβ
- npm
- Yarn
- pnpm
npm install @rpldy/uploady
yarn add @rpldy/uploady
pnpm add @rpldy/uploady
Detailsβ
type useItemFinishListener = ItemEventHook;
- See: ItemEventHook
- See: BatchItem Entity
note
Event Hook - ITEM-FINISH
Called when item finished uploading
info
This event can be scoped to a specific item by passing the item id as a second parameter
Exampleβ
import { useItemFinishListener } from "@rpldy/uploady";
const MyComponent = () => {
useItemFinishListener((item, options) => {
console.log(`item ${item.id} finished uploading, response was: `, item.uploadResponse, item.uploadStatus);
});
//...
};