function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Dana GriffDana Griff 

How to trigger an event when switching between tabs?

Hi,
how can i trigger an aura event everytime a user switches to a different tab?
the reason i want to this is because i have some custom app that i use in "leads" tab, "contacts" tab and "accounts" tab, and whenever i switch between them, new data needs to be loaded, so i want to refresh the tab.

or, in other words - how do i refresh a custom app whenever a user switches to a different tab?

please advise
thanks