Skip to content

🎥 Make videos programmatically with React

document `maxRetries option`

Jonny Burger77f4af38fec3
diff --git a/packages/docs/docs/img.md b/packages/docs/docs/img.md
index 9e4a845767..9108ddd920 100644
--- a/packages/docs/docs/img.md
+++ b/packages/docs/docs/img.md
@@ -64,6 +64,13 @@ export const MyComp: React.FC = () => {
If an error occurs, the component must be unmounted or the `src` must be replaced, otherwise the render will time out.
+From `v3.3.82`, the image load will first be retried before `onError` is thrown.
+
+## `maxRetries` <AvailableFrom v="v3.3.82"/>
+
+If an image fails to load, it will be retried from `v3.3.82`. The default value is `2`.
+An exponential backoff is being used, with 1000ms delay between the first and second attempt, then 2000ms, then 4000ms and so on.
+
## Other props
Remotion inherits the props of the regular `<img>` tag, like for example `style`.