Is there an existing issue for this?
Which Mux Elements/Packages does this apply to? Select all that apply
mux-player-react
Which browsers are you using?
Chrome
Which operating systems are you using?
macOS
Description
<mux-video> and <mux-player> elements are not released from javascript heap when the React MuxPlayer component is unmounted.
Reduced test case
https://github.com/musatov/mux-video-memoryleak
Steps to reproduce
Open the home page with a couple of links to video's pages
Open the dev tools and make s heap snapshot - make sure there is no mux-video nor mux-player objects in the heap
Navigate to the single video page
Navigate back to the home page
Force garbage collection
Make snapshot again
There is mux-video and mux-player objects in the detached state in the heap.
memory-leak.mov
Current Behavior
The objects related to unmounted react MuxPlayer component are in the heap.
Expected Behavior
<mux-video> and <mux-player> elements are cleaned up.
Errors
No response
What version of the package are you using?
3.8.0
Is there an existing issue for this?
Which Mux Elements/Packages does this apply to? Select all that apply
mux-player-react
Which browsers are you using?
Chrome
Which operating systems are you using?
macOS
Description
<mux-video>and<mux-player>elements are not released from javascript heap when the React MuxPlayer component is unmounted.Reduced test case
https://github.com/musatov/mux-video-memoryleak
Steps to reproduce
memory-leak.mov
Current Behavior
The objects related to unmounted react MuxPlayer component are in the heap.
Expected Behavior
<mux-video>and<mux-player>elements are cleaned up.Errors
No response
What version of the package are you using?
3.8.0