-
-
Notifications
You must be signed in to change notification settings - Fork 245
v-if in action bar produces invalid state #76
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
Comments
Wrapping the conditionals in a Working example: https://play.nativescript.org/?template=play-vue&id=6lCJ0V24pwls6qjNxdE0 |
@rigor789 your Working example doesn't work for me: [Galaxy J5]: TypeError: Cannot read property 'getKeyedTemplates' of undefined |
That's due to the ListView not using the new syntax in the linked playground. |
I see , but even after the syntax change, should not the old examples still work - because they are linked to the older versions? Does it mean that future updates will break the examples again ? Sorry for asking like this, I am just evaluating the tools - and it's not clear for me - comparing to JSFiddle (where usually only browser can cause future incompatibility) |
They should be, but I'm guessing they don't "save" unchanged files, meaning that it will use the latest version no matter what. This is just a wild guess, because I don't actually know the internals of the playground. |
We are locking this issue because it has been closed for more than 14 days. If the issue comes up again please open a new issue with additional details. |
Using the following markup:
When switching tabs the first change changes the action bar content properly, and then the following error is displayed:
The error itself is thrown in NativeScript core: https://github.com/NativeScript/NativeScript/blob/f7a3a36b9cdd47042ce145de2e94af6eea63bba1/tns-core-modules/ui/core/view-base/view-base.ts#L504
A sample app reproducing the issue: https://play.nativescript.org/?template=play-vue&id=7i9dwtjHdw0Xh9sm13u_0
The text was updated successfully, but these errors were encountered: