Skip to content

iOS RadListView binding is not update when data is pushed from other component #2326

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

Open
boonuz opened this issue Feb 12, 2021 · 0 comments

Comments

@boonuz
Copy link

boonuz commented Feb 12, 2021

Environment

NativeScript Playground
Tested on iPhone 12 Pro iOS 14.4

Describe the bug

I'm binding RadListView items with array items inside ItemService at HomeComponent.
Then, I push data to array items from HomeComponent and RadListView item is update properly.

But if I navigate to other component ItemComponent, push data to array items
and then navigate back to HomeComponent using this.routerExtension.back({ relativeTo: this.activatedRoute }) RadListView item is not update while other binding is update properly (such as count is update properly)

Please see a sample project for more details.

To Reproduce

  1. Try add item from HomeComponent, the RadListView update properly
  2. Navigate to ItemComponent then click "Add" button. Now item is pushed to array and automatically navigate back
  3. RadListView inside HomeComponent is not update properly

Expected behavior

RadListView should update when items is pushed or delete in other component and navigate back

Sample project

https://play.nativescript.org/?template=play-ng&id=Ts9bSH&v=1

Additional context
Example GIF for the issue.
RPReplay_Final1613108635

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant