Chrome has a limit of ~100 audio elements that can be mounted at a given time. When paging through the results, this means at some point, no new audio elements can be added to the DOM and so the sounds cannot be played.
Added changes to clean up the audio elements and event handlers when the useAudioPlayer hook is unmounted.
Chrome has a limit of ~100 audio elements that can be mounted at a given time. When paging through the results, this means at some point, no new audio elements can be added to the DOM and so the sounds cannot be played.
Added changes to clean up the audio elements and event handlers when the
useAudioPlayer
hook is unmounted.