Method getLoader documentation
Finds the loader object corresponding to the given unique ID and returns it if found.
Example
```javascript
bbn.fn.post('my/script', {a: 1, b: 2});
let requestId = bbn.fn.getRequestId('my/script', {a: 1, b: 2});
if (requestId) {
let loader = bbn.fn.getLoader(requestId);
console.log(loader);
// {
// key: "my/script:af27f0e81533ae2bae3c25dea67359f6",
// url: "my/script",
// loader: {Promise},
// source: {token: {CancelToken}, cancel: {Function}},
// start: 1591804716757
// }
}
```
Finds the loader object corresponding to the given unique ID and returns it if found. - The loader is an object representing an Ajax request, with the following properties:
* _key_ is the unique ID (_requestId_) of the loader
* _url_ is the URL called by the request
* _loader_ is the Promise from the Axios XHR
* _source_ is the source object for aborting the request
* _start_ is the timestamp of the moment the request was sent
BBN is a suite of PHP and JS libraries and VueJS components - all open-source! bbn.io, build applications, the quick way
This website uses cookies to ensure you get the best experience on our website.
© 2011-2023
BBN Solutions