If anybody have this problem, the error reason is because the code call the API and dont wait for the response. So if you need the response for anything (like a calculus or show some attribute) the code does not have that info and that keeps "pendind" or "promise".
I tried the following, make the function an async function (that is an asynchronous and that permits await the response) also I write an await before the fetch.
If anybody have this problem, the error reason is because the code call the API and dont wait for the response. So if you need the response for anything (like a calculus or show some attribute) the code does not have that info and that keeps "pendind" or "promise".
I tried the following, make the function an async function (that is an asynchronous and that permits await the response) also I write an await before the fetch.
dev-to-uploads.s3.amazonaws.com/up...