AlexxNB / tinro

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

Browser back button doesn't work with `router.mode.hash()` #45

Closed NfNitLoop closed 3 years ago

NfNitLoop commented 3 years ago

I reported this in #42, but since the main issue is fixed, I'm re-reporting this as its own issue:

Without router.mode.hash(), I can:

But, if I add router.mode.hash(), clicking the back button doesn't work. It does change the URL in the browser bar, but the contents rendered in the page do not revert to the original contents. (Fully reloading the page fixes this.)

Should this work the same as the default router mode?

AlexxNB commented 3 years ago

fixed in 495e294e71491785bfdb7e733cf271707875e71f