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
drs-medrs-me 

Lightning Aura Event handler for Console navigation tab refresh

Hi,
On refreshing a tab on the console navigation on lex, my lightning component is not refreshed.
I have tried to bind the reinitialization with
<aura:handler event="force:refreshView" action="{!c.jsLoaded}" />
but it doesnt seem to be triggered.
What is the correct way to also refresh my lightning component on refreshing the tab ?
Thanks
 
NagendraNagendra (Salesforce Developers) 
Hi Donny,

May I suggest you please check with below link from the forums community with a use case and clear explanation for the above issue. Hope this helps.

Please mark this as solved if it's resolved so that it gets removed from the unanswered queue which results in helping others who are encountering a similar issue.

Thanks,
Nagendra
drs-medrs-me
Hi Nagendra,
thanks for the link you gave me.

Maybe my use case is not clear enough.
If you create a lightning app with console navigation, you will get the function on the tab to refresh the tab.User-added image

On executing this function I want to refresh my lightning component on that page, but I dont know which event handler I can use.
I already tried force:refrehView, but unfortunately this is not triggered.
Luca.NardiniLuca.Nardini
Same issue here - did you manage to solve it drs-me?
drs-medrs-me
No
Salesforce Automation 11Salesforce Automation 11
lightning:tabRefreshed
Is the event you need to handle.

https://developer.salesforce.com/docs/atlas.en-us.api_console.meta/api_console/sforce_api_console_events_tabrefreshed.htm