Skip to main content

useAbortAll

Package​

@rpldy/uploady

Installation​

npm install @rpldy/uploady

Details​

type useAbortAll = () => () => boolean;

Returns abort all method. This is a convenience method to use instead of using the Context API directly.

Example​

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

const MyComponent = () => {
const abortAll = useAbortAll();

return <button onClick={() => abortAll()}>Abort All</button>
};