Skip to content

ListView inside TabView does not always update on iOS #1822

Open
@daveware-nv

Description

@daveware-nv

Environment
Provide version numbers for the following components (information can be retrieved by running tns info in your project folder or by inspecting the package.json of the project):

  • CLI: 5.3.3
  • Cross-platform modules: 5.3.2
  • Android Runtime: 5.3.1
  • iOS Runtime: 5.3.1
  • NativeScript-Angular: 7.2.4
  • Angular: 7.2.15

Describe the bug
Intermittently a ListView will not update when the backing array is changed/updated.

  • Only appears to occur on iOS
  • Seems to only happen when in a TabView with multiple tabs
  • Occurs intermittently.
  • Occurs infrequently in my emulator tests, but occurs quite often on my device test (iPhone 6 ios 12.2).

To Reproduce
I've setup the list to load after a 1s delay

  1. tns run ios
  2. if list appears (after 1s) tap any item
  3. tap the button labelled "back"
  4. repeat from 2 until the list doesn't display

Expected behavior
List should always display

Sample project
https://github.com/daveware-nv/test-ns-ios-listview

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions