NativeScript / nativescript-background-http

Background Upload plugin for the NativeScript framework
Apache License 2.0
102 stars 50 forks source link

Change detection on Listview of bghttp.Tasks #262

Closed pekevski closed 4 years ago

pekevski commented 4 years ago

Following the demo app i have created a listview of bghttp.Tasks. When only one task is uploading i get an angular: CONSOLE ERROR [native code]: ERROR Error: ExpressionChangedAfterItHasBeenCheckedError: Expression has changed after it was checked. Previous value: 'value: 1769472'. Current value: 'value: 1802240'.

is there a nice way to mitigate this. All I am doing is displaying each tasks upload information in the template.

pekevski commented 4 years ago

i wrapped each callback in an ngZone run and it seems to fix the change detection issue.