title: setter of useState don't care about await
body: <p>I have an asynchronicity problem due to the useState Hook.
  Indeed, the latter seems to not take the await into consideration at all, as if the setter was asynchronous. I would have liked to know if someone would have a solution to solve my problem?</p>
  <pre class="lang-js prettyprint-override"><code>const [checkedList, setCheckedList] = useState([]);
  
  const onCheckChange = async(checkedValues) =&gt; {
          await setCheckedList(checkedValues);
          await onFinish(checkedList);
  
      }
  </code></pre>
  <p>Thank you</p>