We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5fc049e commit 697bccbCopy full SHA for 697bccb
src/components/AudioPlayer/WithAudioPlayback.tsx
@@ -10,12 +10,12 @@ const audioPlayers = new AudioPlayerPool();
10
export type WithAudioPlaybackProps = { children?: ReactNode };
11
12
export const WithAudioPlayback = ({ children }: WithAudioPlaybackProps) => {
13
- useEffect(() => {
14
- audioPlayers.registerSubscriptions();
15
- return () => {
+ useEffect(
+ () => () => {
16
audioPlayers.clear();
17
- };
18
- }, []);
+ },
+ [],
+ );
19
20
return children;
21
};
0 commit comments