Is it possible to catch navigation event inside Sharepoint Framework web part?
I know this is possible in application customizer using
context.placeholderProvider.changedEvent, but I cannot find anything similar for web parts.
I use ReactJS and I tried
componentWillUnmount, but it's not invoked.
window.onhashchange - don't work either, probably because modern SharePoint pages are not reloaded entirely when navigating through pages.