Timeline for Returning data from Axios API
Current License: CC BY-SA 4.0
7 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Apr 16 at 21:29 | comment | added | trozzel | Maybe a dumb question, but every time I try to access this data, it is still returned as a Promise. How do I call this function so as to receive the data? | |
S May 31, 2023 at 7:39 | history | suggested | Raf | CC BY-SA 4.0 |
corrected arrow function declaration and formatting
|
May 31, 2023 at 7:11 | review | Suggested edits | |||
S May 31, 2023 at 7:39 | |||||
May 24, 2022 at 12:33 | history | edited | Muteshi | CC BY-SA 4.0 |
update the answer to use arrow functions
|
Sep 12, 2020 at 16:38 | comment | added | Rodney P. Barbati | This is the correct answer - when you debug the code in your app, the function calling the above will appear to return as well as all other functions in the chain, but then a moment later the code will execute starting after the await. You will need to make all functions in your app async, and call all of them with await. Put a breakpoint on the return statement and one on the next line of code in the caller - all will become clear. | |
Apr 22, 2020 at 13:20 | review | Late answers | |||
Apr 22, 2020 at 13:30 | |||||
Apr 22, 2020 at 13:05 | history | answered | Muteshi | CC BY-SA 4.0 |