Hello,
I'm using the DevExtreme ODataSource without jQuery and attempting to handle the errors. If I use the proper methods for a native promise (then and catch), the catch isn't called when there is an error. If I switch to using (done and fail) the fail handler is called.
Example here https://dxodata-hcp1sw.stackblitz.io
Should work
JavaScriptthis.store.insert({
ProductName: 'goo'
}).then(() => {
alert('Success');
}).catch(() => {
alert('Error!');
});
Works but isn't right for a native promise
JavaScriptthis.store.insert({
ProductName: 'goo'
}).done(() => {
alert('Success');
}).fail(() => {
alert('Error!');
});
Hi Mark,
Thank you for bringing this to our attention. I've reproduced the issue. We need additional time to research it. We will update the ticket when we have any news.