After component is unmounted, sound is still playing
mscin opened this issue · comments
I'm also facing same issue. Is there any solution available? thanks
I use this approach:
// Turn off sound when leaving page
useEffect(() => {
return () => {
console.debug('Turning off background music')
Howler.stop()
}
}, [])