-
Notifications
You must be signed in to change notification settings - Fork 64
Labels
bugSomething isn't workingSomething isn't working
Description
Is there an existing issue for this?
- I have searched the existing issues
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
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working