retryEnhancer
Packageβ
Installationβ
- npm
- Yarn
- pnpm
npm install @rpldy/retry
OR
npm install @rpldy/retry-hooks
yarn add @rpldy/retry
OR
yarn add @rpldy/retry-hooks
pnpm add @rpldy/retry
OR
pnpm add @rpldy/retry-hooks
Detailsβ
To enable retries for your Uploady instance, you need to use the provided (uploader enhancer): retryEnhancer
.
Exampleβ
import Uploady from "@rpldy/uploady";
import { retryEnhancer } from "@rpldy/retry-hooks";
import UploadButton from "@rpldy/upload-button";
const App = () => {
return <Uploady
destination={{ url: "my-server.com/upload" }}
enhancer={retryEnhancer}
>
<UploadButton/>
</Uploady>;
};