Skip to main content

useItemAbortListener

Package​

@rpldy/uploady

Installation​

npm install @rpldy/uploady

Details​

type useItemAbortListener = ItemEventHook;
note

Event Hook - ITEM-ABORT

Called in case abort was called on the context or on the uploader.

info

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

Example​

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

const MyComponent = () => {
useItemAbortListener((item, options) => {
console.log(`item ${item.id} was aborted`);
});

//...
};