diff --git a/README.md b/README.md index eafdcdb..52f8c30 100644 --- a/README.md +++ b/README.md @@ -91,7 +91,11 @@ const dataUrl = editorRef.current?.editor?.getImage(); Two distinct channels: - **`onLoadError`** — the editor loaded fine, but the _image_ couldn't be loaded into the canvas (CORS, dead URL, decode error). -- **`onError`** — the wrapper couldn't reach a working editor: the embed script failed to load, editor creation was rejected, or re-applying a changed `image` failed. After a CDN failure the wrapper automatically resets its loader state, so a later remount retries from scratch. +- **`onError`** — the wrapper couldn't reach a working editor: the embed script failed to load, editor creation was rejected, or re-applying a changed `image` failed. A later remount retries from scratch. + + That retry relies on the current Unlayer CDN loader, which clears its own cached bundle promise when a load fails. A pinned older build, or a custom loader supplied through `scriptUrl`, has not been verified to do the same — if it caches a rejection, remounting may keep failing until the page reloads. + + The wrapper also clears the loader state it owns. It removes a `