I need the result of this axios call. I have tried many ways but I can´t get the promise resolved. I am allways getting promise pending with status resolved and [[PromiseValues]] This is the last one I have tried:
function getResult() {
let promise = new Promise(function(resolve, reject) {
resolve(axios.get(URL))
});
return promise;
};
let theResult = getResult().then(function(result) {
return result.data
});