I was wondering what techniques patterns are you using to share variables between promises. E.g.
fetchAuthor()
.then(response => {
const authorId = response.id
return fetchLatestIssues(authorId)
})
.then(response => {
const issueId = response.id
// I need the authorId here
return fetchCommentsByAuthorOnIssue(authorId, issueId)
})
ここには何もないようです