Skip to content

On hot module replacement, the application will sometimes duplicate VR video streams. #95

@GuillaumeLeroy34

Description

@GuillaumeLeroy34

Describe the bug
A clear and concise description of what the bug is.
When modifying the frontend, Vite will reload the page dynamically so that changes are reflected in real time, but instead of re-initializing the streams, it simply adds them to the list.
To Reproduce
Steps to reproduce the behavior:

  1. Go to the streaming page of the application
  2. Connect a headset through adb
  3. make a bogus change in the VideoStreamManager to trigger a hot module replacement
  4. An additional black stream is added to the page besides the existing stream.

Expected behavior
The list should remain the same.

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: Windows
  • Browser: Firefox
  • Version: Latest

Additional context
This bug may also happen at random during first rendering of the application, so while hot module replacing will only happen in dev context, fixing it may prevent other more annoying bugs from happening in the future.

Metadata

Metadata

Labels

🎨 FrontendIssues related to HTML, CSS, JavaScript.😱 BugSomething isn't working

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions