Forum Discussion
Umag98
Jun 22, 2021Brass Contributor
custom teams App window.addEventListener not triggered
the below code work ffine when the browser reloaded , but not on the teams reload tab,
useEffect(() => {
window.addEventListener('beforeunload', leaveEvent)
return () => {
window.removeEventListener('beforeunload', leaveEvent)
}
}, [data])
but when i reload the entire browser teams tab it works fine , but not on click of team reload tab .
i wanted to know is their way to listen to teams reload tab, or when we move to any of the other team app like chat or team from the personal tan
- Hi Umag98, this can be tracked from https://stackoverflow.com/questions/68088215/is-their-a-way-to-listen-to-ms-teams-tab-reload .
Thank you
2 Replies
- Jagadeesh-MSFTFormer EmployeeHi Umag98, we are working on it , we will update you soon.
- Jagadeesh-MSFTFormer EmployeeHi Umag98, this can be tracked from https://stackoverflow.com/questions/68088215/is-their-a-way-to-listen-to-ms-teams-tab-reload .
Thank you