webix-hub / webix

Stable releases of Webix UI - JavaScript library for building mobile and desktop web apps

Home Page:http://webix.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

DataProcessor data loss issue

k8n opened this issue · comments

commented

DataProcessor fails to call the API with an update when a prior update operation for the item with the same ID is currently in-flight.

if (tosave._in_progress) continue;

This is especially problematic when working with a datatable with the autoupdate on over an unreliable or slow network connection.

Suppose a datatable update results in an API call to update the backend. Suppose the API call is delayed and takes 2 seconds to complete. If another update event comes from the datatable while this API call is in flight, Webix will ignore the update, will not commit the change to the backend.