Open timbell opened 3 years ago
Same here :( - occasionally, difficult to reproduce ...
@timbell @jessorlisa could you try nativescript-ui-listview 9.0.4?
I also have issues using the RadListView component on Android since version 9.1.0 + https://github.com/ProgressNS/nativescript-ui-feedback/issues/1508
@felixkrautschuk I ended up with a workaround, like item ? item.name : ''
- this problem has been occurring since we've been using RadListView, if only occasionally and not properly reproducable.
@felixkrautschuk I' do the same as @jessorlisa . It works around the problem satisfactorily.
Same issue.
I also have the same issue
Tell us about the problem
RadListView + Angular with grid layout. When scrolling, sometimes the item template is called with an
undefined
item. I've reproduced in a sample app based on theHello World
template using the current latest NativeScript version (8.0.1) and also in the playground.The problem appears to be triggered by the presence of cells with different heights, hence the contrived example.
Which platform(s) does your issue occur on?
Platform: Android -
Accelerated Nougat
emulator, real android 11 and the playgroundPlease provide the following version numbers that your issue occurs with:
nativescript-ui-listview
- 9.1.0CLI
- 8.0.1@nativescript/core
- 8.0.1nativescript-ui-core
- 4.0.0@nativescript/android
- 8.0.0@angular
- 11.2.9Please tell us how to recreate the issue in as much detail as possible.
To reproduce, start the app and scroll (slowly is best) in the listview. Occasionally an error will appear in the console:
The sample app also records the times that the item is
undefined
and displays this count in the header.The problem leads to empty cells being displayed in the grid.
Here's an animated gif showing the problem happening:
Is there code involved? If so, please share the minimal amount of code needed to recreate the problem.
Please see the app in the playground: link