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

ListView items doesn't get refreshed with component data other than the iterable item #316

Closed
FacundoMainere opened this issue Aug 27, 2018 · 3 comments

Comments

@FacundoMainere
Copy link

Version

1.3.1

Reproduction link

https://play.nativescript.org/?template=play-vue&id=lZNIFe

Platform and OS info

Android 7.1.1

Steps to reproduce

Instantiate ListView inside any component and use component data that gets changed in some way

What is expected?

The data to refresh on the ListView item when its changed on the component

What is actually happening?

The item only refreshes for data inside the passed iterable item

@rigor789
Copy link
Member

This is expected behavior, because the ListView's item template is rendered and updated by the list view when scrolling (view recycling), if you need to make sure the list view is updated when you change your property, call refresh on it. In 1.3.1 you can do this.$refs.listView.nativeView.refresh() and assign the ref to the ListView: <ListView ref="listView" for...

@FacundoMainere
Copy link
Author

i understand.
Thank you!

@nativescript-vue-bot
Copy link
Collaborator

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.

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

No branches or pull requests

3 participants