I was wondering what the preferred way of aborting the AJAX request called from JSONModel.loadData would be?
For my current solution, I've extended the JSONModel class and overrode loadData. The new method is the exact same as the parent loadData, but now we store the XHR object somewhere. Then, later on, I reference this XHR object again to abort the request. The problem with this approach is that the console throws the following error:
The following problem occured: abort - undefined,0,abort
which makes me believe that this is not a right method of doing things. Also, the fact that the UI5 API could change how loadData works makes me a little uneasy, hence why I would like a different solution.
Thank you in advance,