nativescript-angular icon indicating copy to clipboard operation
nativescript-angular copied to clipboard

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

Open boonuz opened this issue 4 years ago • 0 comments

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

boonuz avatar Feb 12 '21 06:02 boonuz