Newer Version Available
lightning__tabClosed
A Lightning message channel that corresponds to the lightning:tabClosed Aura app event.
Response
The response is the same as that of the lightning:tabClosed Aura app event.
LWC Example
Import the lightning__tabClosed message channel from the @salesforce/messageChannel/ scoped module. The event returns the message in the response.
For more information, see Subscribe and Unsubscribe from a Message Channel.