4 months ago
1
0
1
0
Posts by
And if that's your problem. You can chain Promise chains by returning the whole chain and returning the value inside the callback. Eg.
function outside {
Inside.then(insideResult =>...
}
function inside {
return somethingAsync.then(val => val)
}
1 year ago
0
0
0
0
This question implies you're combining async functions with sync ones. I'm guessing you're using `something.then` syntax instead of async/await and having the result "trapped" in that callback. This article might shed a different perspective on it.
journal.stuffwithstuff.com/2015/02/01/w...
1 year ago
0
0
1
0