banner
rlecaro2.bsky.social
@rlecaro2.bsky.social
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)
}
March 27, 2025 at 3:59 PM
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...
What Color is Your Function? – journal.stuffwithstuff.com
journal.stuffwithstuff.com
March 27, 2025 at 3:56 PM