Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

iOS: ver 0.1.22: the event "destroyed" does not fired #67

Closed
newapx opened this issue Oct 16, 2017 · 6 comments
Closed

iOS: ver 0.1.22: the event "destroyed" does not fired #67

newapx opened this issue Oct 16, 2017 · 6 comments
Labels

Comments

@newapx
Copy link
Contributor

newapx commented Oct 16, 2017

After a call of $navigateBack event destroyed at a component is not caused.
Event mounted worked.

It (both event) works at Android.

@rigor789 rigor789 added the bug label Oct 16, 2017
@rigor789
Copy link
Member

I wonder if that is intentional by Vue, maybe it is in SSR mode when not running in a browser:

https://vuejs.org/v2/api/#destroyed

This hook is not called during server-side rendering.

@newapx
Copy link
Contributor Author

newapx commented Oct 16, 2017

According to documentation all hook do not work in the SSR mode, but mounted works.
And all works fine at Android.

Similar to operations of NS on iOS.

@rigor789
Copy link
Member

Alright, thanks for the info, will look into it

@rigor789
Copy link
Member

I have released 0.1.24 and I believe instances should get destroyed properly now, can you please give it a try and let me know?

@newapx
Copy link
Contributor Author

newapx commented Nov 22, 2017

I have checked on version 0.2.0.
The page is destroyed, and the event "ondestroy" also works

@rigor789
Copy link
Member

Cool!

@nativescript-vue nativescript-vue locked as resolved and limited conversation to collaborators May 22, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Development

No branches or pull requests

2 participants