🎥 Make videos programmatically with React
Update shared-audio-tags.tsx
Jonny Burger4b4bc847a86a
diff --git a/packages/core/src/audio/shared-audio-tags.tsx b/packages/core/src/audio/shared-audio-tags.tsxindex ac1e61a42e..a93dfb46df 100644--- a/packages/core/src/audio/shared-audio-tags.tsx+++ b/packages/core/src/audio/shared-audio-tags.tsx@@ -90,7 +90,9 @@ export const SharedAudioContextProvider: React.FC<{const data = audios.current?.find((a) => a.id === id);const {current} = ref;if (!current) {- throw new Error('Audio has no ref ' + id);+ // Whole player has been unmounted, the refs don't exist anymore.+ // It is not an error anymore though+ return;}if (data === undefined) {