Skip to content

Commit

Permalink
Fix the effect firing on every audioEl change...
Browse files Browse the repository at this point in the history
  • Loading branch information
kovipu committed Apr 19, 2024
1 parent 0b4acf6 commit 62599b0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pages/_app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@ const MyApp = ({ Component, pageProps }: AppProps) => {
) {
audioEl.current.src = AUDIO_STREAM_URL;
}
}, [audioEl]);
// eslint-disable-next-line react-hooks/exhaustive-deps
}, []);

// Load the stream on initial page load.
useEffect(loadAudioStream, [loadAudioStream]);
Expand Down

0 comments on commit 62599b0

Please sign in to comment.