You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We should listen for the astro:before-swap event in the CldVideoPlayer and CldUploadWidget components, and when it fires, run the destroy method on the given widget instance.
Astro makes available the
astro:before-swap
event that can allow us to clean up any resources prior to clientside page change.https://docs.astro.build/en/guides/view-transitions/#astrobefore-swap
We should listen for the
astro:before-swap
event in the CldVideoPlayer and CldUploadWidget components, and when it fires, run the destroy method on the given widget instance.Example in Next.js: https://github.com/cloudinary-community/next-cloudinary/blob/main/next-cloudinary/src/components/CldUploadWidget/CldUploadWidget.tsx#L135-L140
The text was updated successfully, but these errors were encountered: