By doing the for loop instead of the ForEach you just killed the whole purpose of doing the async code.
supposed axios(${baseURL}/users/${post.userId}) takes a couple of seconds to run...
Listen to your Toddler, he just wants to move fast and execute stuff as fast as possible!
You should just put the result in an array and sort the order out in the end.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
By doing the for loop instead of the ForEach you just killed the whole purpose of doing the async code.
supposed axios(
${baseURL}/users/${post.userId}
) takes a couple of seconds to run...Listen to your Toddler, he just wants to move fast and execute stuff as fast as possible!
You should just put the result in an array and sort the order out in the end.