useAbortAll
Packageβ
Installationβ
- npm
- Yarn
- pnpm
npm install @rpldy/uploady
yarn add @rpldy/uploady
pnpm add @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>
};