svelte-native icon indicating copy to clipboard operation
svelte-native copied to clipboard

Urgent: Docs missing for Navigation goBack with Page ref?

Open markschellhas opened this issue 4 years ago • 3 comments

Reference docs: https://github.com/halfnelson/svelte-native/blob/master/docs_src/content/docs/10-routing.md#goback

I'm trying to navigate to a specific page and would like to use the to: prop as described in regarding referencing a page. But how is this used? How do I reference a page?

markschellhas avatar Jul 26 '21 20:07 markschellhas

You should bind needed page to variable and save it elsewhere accessible to goBack:

<script>
    let optionsPage;
</script>

<page bind:this={optionsPage}>

uzarsalan avatar Oct 06 '21 17:10 uzarsalan

After updating my app to {S} v1, navigation crashes the app yet it worked previously in a mapApp IMG_20211212_152040.jpg

devyaz avatar Dec 12 '21 13:12 devyaz

I might need a minimal example, it throws that error if it doesn't think it was given a valid argument, so I will need to know what arg you are using for the destination

On Sun, 12 Dec 2021, 11:25 pm devyaz, @.***> wrote:

After updating my app to {S} v1, navigation crashes the app [image: IMG_20211212_152040.jpg] https://user-images.githubusercontent.com/20435017/145714049-634941d8-5255-4e9c-b87e-ce14a7b2e676.jpg

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/halfnelson/svelte-native/issues/235#issuecomment-991897948, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAEGS5HGYNGYD6ODIJV5VWLUQSPDDANCNFSM5BAZQQ7A . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

halfnelson avatar Dec 12 '21 21:12 halfnelson