Forum Discussion
New Teams Personal Tab On Desktop Client App only works on first load
Meghana-MSFT Hey Meghan, spent some time debugging my issue this week and it came down to how the new ms teams handles Shared Workers compared to previously.
My assumption to what was happening is on initial load after hard close of ms teams it instantiates the first instance of the Shared Worker so every works fine and connects as expected, however when leaving the tab I assume ms teams doesn't kill the shared worker and leaves it in an 'unconnectable' state so when i return to the tab and try to reconnect to the worker with its associated name it just fails.
This also explains why it was working inside the browser version of new ms-teams.
I've implemented a temporary fix which will just spin up a new Shared Worker if it fails to connect to the already exisiting one but this was never an issue in the classic ms teams. Switching to using inline instead of a worker also fixes the issue fyi.