Hi, I have an issue where I have some data being posted twice. For some reason webix.ajax().post intermittently sends the data a second time (before a response is returned from the first call). I have watched this happen in Chrome using Network>XHR. Nothing else calls this function, I have looked through the webix_debug file and can see some updates to the ajax section. I wonder if this is a bug in v2.3? I recently upgraded from v2.1.5 where I haven’t had this issue. It’s odd that it doesn’t happen every time, it seems to happen randomly!
Has anyone come across a similar issue? I could really do with some help/ideas on how to find the cause of the problem. Thanks
FIXED. And it’s not a bug Details below if anyone has similar issue…
I temporarily stored the data in local storage before sending it. Problem was my polling function (which takes care of failed ajax data) was sending this temp data just before it gets deleted. The randomness comes from network delay which is different every time. So sometimes the ajax call returns OK and removes the temp data so the polling function never see it, and other times the polling function got called just before the temp data was removed, so then sent it again!