8000 ListView/RadListView with ObservableArray; [Vue warn]: Invalid prop: type check failed for prop "items". Expected Array, got Object. · Issue #464 · nativescript-vue/nativescript-vue · GitHub
[go: up one dir, main page]

Skip to content
ListView/RadListView with ObservableArray; [Vue warn]: Invalid prop: type check failed for prop "items". Expected Array, got Object. #464
Closed
@wpatter6

Description

@wpatter6

Version

2.2.0

Reproduction link

https://play.nativescript.org/?template=play-vue&id=b1M71v&v=2

Platform and OS info

Android, NSVue: 2.2.0, Vue: 2.5.17

Steps to reproduce

Just run the playground link above and view the device logs.

What is expected?

The console would not display any warnings about prop type checks

What is actually happening?

The console is showing [Vue warn]: Invalid prop: type check failed for prop "items". Expected Array, got Object. This happens with both ListView and RadListView components.


This should be a simple fix for the vue ListView and RadListView components; the prop type should be Array | ObservableArray since the latter is a class.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0