svelte-ionic-npm icon indicating copy to clipboard operation
svelte-ionic-npm copied to clipboard

ionViewWillLeave does not fire in IonPage

Open Tommertom opened this issue 3 years ago • 1 comments

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 avatar Nov 16 '22 19:11 Tommertom

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

Tommertom avatar Nov 26 '22 05:11 Tommertom