Skip to main content

useItemFinalizeListener

Package​

@rpldy/uploady

Installation​

npm install @rpldy/uploady

Details​

type useItemFinalizeListener = ItemEventHook;
note

Event Hook - ITEM-FINALIZE

Called for item when uploading is done due to: finished, error, cancel or abort

info

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

Example​

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

const MyComponent = () => {
useItemFinalizeListener((item, options) => {
console.log(`item ${item.id} is done with state: ${item.state}`);
});

//...
};