Tommertom / svelte-ionic-npm

NPM package that goes along with Ionic Svelte integration demo
MIT License
19 stars 0 forks source link

ionViewWillLeave does not fire in IonPage #1

Open Tommertom opened 1 year ago

Tommertom commented 1 year ago

ionViewWillLeave does not fire in IonPage

because import { beforeNavigate } from "$app/navigation"; gives an error (unresolvalble import)

Anyone knows how to fix this? Probably something wrong with package.json?

https://github.com/Tommertom/svelte-ionic-npm/blob/main/components/IonPage.svelte

Tommertom commented 1 year ago

Will not fix this for now as beforeNavigate is not available and no workaround I see acceptable to expose this hook

Users will have to use beforeNavigate in their code to have this event captured

Which isn't even a bad thing - it's a supported Kit API

Keeping issue open nevertheless