Salesforce Fact #831 | Refresh utility bar lightning component on tab change
While using any lightning component in the utility bar, it does not get refreshed whenever we change the tabs.
However, we can make use of aura:locationChange to detect any change in the url and add logic accordingly.
Reference: https://developer.salesforce.com/docs/component-library/bundle/aura:locationChange/documentation
In this simple example, we are just printing the current time every time the tab is changed to show that it is a different value each time.
Attached are the screenshots.
Comments
Post a Comment