How do I access previous promise results in a .then() chain?
Break the chain When you need to access the intermediate values in your chain, you should split your chain apart in those single pieces that you need. Instead of attaching one callback and somehow trying to use its parameter multiple times, attach multiple callbacks to the same promise – wherever you need the result value. … Read more