Skip to content

How can I wait for my "request" and response back to front end? #1650

Answered by RomainLanz
YuyangZhou3 asked this question in Help
Discussion options

You must be logged in to vote

Hey @YuyangZhou3! 👋

Your issue is not related to AdonisJS at all.
You need first to understand how asynchronous code works in JavaScript.

To give you a hint, you are mixing async/await with a callback API.
I'd recommend you to read about Promise and async/await.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by RomainLanz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants