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 bddc3b7
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 @@ -35,7 +35,8 @@ const MyApp = ({ Component, pageProps }: AppProps) => {
}, [audioEl]);

// Load the stream on initial page load.
useEffect(loadAudioStream, [loadAudioStream]);
// eslint-disable-next-line react-hooks/exhaustive-deps
useEffect(loadAudioStream, []);

const handlePlayPause = () => {
setPlayClicked(true);
Expand Down

0 comments on commit bddc3b7

Please sign in to comment.