HomePhabricator
Diffusion Comm aff06cc4ecab

[web] Only open tunnelbroker on the active tab

Description

[web] Only open tunnelbroker on the active tab

Summary:
ENG-6668 : Only open tunnelbroker on a tab with a lock

Using the previously useWebLock hook, we can open the tunnelbroker connection only on one of the tabs in the foreground.

Depends on D11114

Test Plan:
Switch between different tabs, make sure after a little bit of time (disconnetion of the previous tab and connection of the current tab) the new tabs connects to the tunnelbroker. Make sure that if multiple tabs are visible and in the foreground, only one tab connects to the tunnelbroker.

Because of ENG-6875 I introduced a quickfix to test this diff. I will wait with landing and after the issue is resolved I will re-test it.

Reviewers: kamil, inka, bartek

Reviewed By: kamil

Subscribers: ashoat, tomek

Differential Revision: https://phab.comm.dev/D11118

Details

Provenance
Michal Gniadek <michal.gniadek@swmansion.com>Authored on Feb 19 2024, 7:02 AM
Reviewer
kamil
Differential Revision
D11118: [web] Only open tunnelbroker on the active tab
Parents
rCOMM607075edee57: [web] Release lock on app hot reload
Branches
Unknown
Tags
Unknown