Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

$navigateTo() frame ID issue #55

Open
unremarkablegarden opened this issue Aug 6, 2020 · 1 comment
Open

$navigateTo() frame ID issue #55

unremarkablegarden opened this issue Aug 6, 2020 · 1 comment

Comments

@unremarkablegarden
Copy link

unremarkablegarden commented Aug 6, 2020

To use this.$navigateTo() you now have to specify the frame ID 'navigator' explicitly or it won't navigate. Also won't give an error unless you add a catch().

This after running some of the later updates to the nativescript vue packages. Not sure which version I was at before when it was still working, sorry. Currently on the latest.

this.$navigateTo(ItemDetails, {
    frame: 'navigator',
    props: { ... }
}).catch(error => console.log(error))

The error I caught was: TypeError: undefined is not an object (evaluating 'frame.id')

@rigor789
Copy link
Member

rigor789 commented Aug 6, 2020

That's correct - you shouldn't need to use $navigateTo with the navigator, the call should be

this.$navigator.navigate('/path/of/the/details/route', {
    props: { ... }
}).catch(error => console.log(error))

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Development

No branches or pull requests

2 participants