🎥 Make videos programmatically with React
Update shared-audio-tags.tsx
Jonny Burgerf9d13cd94b30
diff --git a/packages/core/src/audio/shared-audio-tags.tsx b/packages/core/src/audio/shared-audio-tags.tsxindex 14a6cc476d..4a60264229 100644--- a/packages/core/src/audio/shared-audio-tags.tsx+++ b/packages/core/src/audio/shared-audio-tags.tsx@@ -247,11 +247,13 @@ export const SharedAudioContextProvider: React.FC<{audioId,id,premounting,+ postmounting,}: {id: number;aud: AudioHTMLAttributes<HTMLAudioElement>;audioId: string;premounting: boolean;+ postmounting: boolean;}) => {let changed = false;@@ -277,6 +279,7 @@ export const SharedAudioContextProvider: React.FC<{...prevA,props: aud,premounting,+ postmounting,audioId,audioMounted,};@@ -404,7 +407,7 @@ export const useSharedAudio = ({if (ctx && ctx.numberOfAudioTags > 0) {ctx.updateAudio({id: elem.id, aud, audioId, premounting, postmounting});}- }, [aud, ctx, elem.id, audioId, premounting]);+ }, [aud, ctx, elem.id, audioId, premounting, postmounting]);effectToUse(() => {return () => {