title: How can we call specific API on promise.allSettled & useEffect?
body: <p>How can we call specific API on promise.allSettled &amp; useEffect ?</p>
  <pre><code>const multipleAPICall = async () =&gt; {
  promise.allSettled([ await apiCall1(), await apiCall2(), await apiCall3() ])
  .then((response)=&gt; {
  setResponseAPI1(response[0].value.data);
  setResponseAPI2(response[1].value.data);
  setResponseAPI3(response[2].value.data);
  })
  }
  useEffect(() =&gt; { multipleAPICall() }, [state1, state2, state3])
  </code></pre>
  <p>state1, state2 &amp; state3 are the user-selected values are passing as params in API call. But as a specific state update I wanted to call only a specific API not all the APIs.</p>