Make sure to check the demo app(s) for sample usage
Make sure to check the existing issues in this repository
If the demo apps cannot help and there is no issue for your problem, tell us about it
Please, ensure your title is less than 63 characters long and starts with a capital
letter.
When loading data items asynchronously (REST api, ...) and pushing them into the ObservableArray of the collectionview, the app crashes on iOS with the following message:
Uncaught Error: attempt to insert item 0 into section 0, but there are only 0 sections after the update
When I add the items synchronously (without any delay), the crash does not occur.
Which platform(s) does your issue occur on?
iOS
iOS 16.2 (also all versions to 13.7..)
emulator and device
Please, provide the following version numbers that your issue occurs with:
CLI: 8.4.0
Cross-platform modules: 8.4.7
Runtime(s): ios 8.4.1
Plugin(s): collectionview 4.0.70
Please, tell us how to recreate the issue in as much detail as possible.
open the sample app provided above
tap the button to navigate to the page with collectionview
Make sure to check the demo app(s) for sample usage
Make sure to check the existing issues in this repository
If the demo apps cannot help and there is no issue for your problem, tell us about it
Please, ensure your title is less than 63 characters long and starts with a capital letter.
When loading data items asynchronously (REST api, ...) and pushing them into the ObservableArray of the collectionview, the app crashes on iOS with the following message:
Uncaught Error: attempt to insert item 0 into section 0, but there are only 0 sections after the update
When I add the items synchronously (without any delay), the crash does not occur.
Which platform(s) does your issue occur on?
Please, provide the following version numbers that your issue occurs with:
Please, tell us how to recreate the issue in as much detail as possible.
Is there any code involved?
XML
TS
Full sample app: ns-collectionview.zip