AlexxNB / tinro

Highly declarative, tiny, dependency free router for Svelte's web applications.
MIT License
669 stars 30 forks source link

How can i catch the route change ? #124

Open caginsucu opened 1 year ago

caginsucu commented 1 year ago

If there are changes in the form page in the project, if the route is wanted to be changed or if the url path is wanted to be changed, I need to capture this within the page.

I can catch the change in the window with the 'beforeunload' method. (shutdown, manual url change, window or browser closing). But when I want to change page by clicking on the links I created with 'tinro', I can't catch 'beforeunload'. How can i solve this ?