Suppose I have surfaced an LWC as a custom tab in a Lightning application by using the <target>lightning__Tab</target>
in the metadata file. The LWC has some state. If I navigate away to another tab (for instance, a custom object tab) and return to the LWC tab, the state is still there. However, neither renderedCallback() nor connectedCallback() fires on the LWC when returning to the tab. Is there a good way to detect that the user came back?
One use case is wanting to reset some state.