title: How do I access previous promise response in a .then() chain in axios?
body: <p>I need access to responseA to get access to a field value further along the chained request. How can that be done elegantly?</p>
  
  <pre><code>  axios.get(`/endpoint`) 
              .then((responseA) =&gt; {
                 // Do something with responseA
                 return axios.put(signedUrl, file, options); 
              })
              .then((responseB) =&gt; {
                 // Do something with responseA &amp; responseB
              })
              .catch((err) =&gt; {
                  console.log(err.message);
              });
  </code></pre>
  
  <p>UPDATE: I should probably mention that in my first .then() I return another network request. And it has to happen in sequence.</p>