title: React doesn't update value if inital setValue method of Hook is used
body: <p>I created a minimalistic app using the <code>npx create-react-app</code> approach. I created a <code>functional component</code> and tried if an <em>old</em> setValue method of a <code>useState</code> hook updates the value maintained by the hook. </p>
  
  <p>Therefore, I created an array <code>listOfSetValueMethods</code> that contains all <code>setValue</code> methods. In the <code>myButtonClick()</code> method I used the <strong>first</strong> <code>setValue</code> method to update the value of the hook: it <strong>does not work</strong>: react does not re-render anything: <code>listOfSetValueMethods[0](scopeId+1);</code>. If I use <strong>ANY other</strong> <code>setValue</code> method, it <strong>does work</strong>:</p>
  
  <pre><code>var myCounter=0;
  var listOfSetValueMethods=[];
  
  function MyComponent() {
    const [currentScopeId,setValue]=useState(-1);
    listOfSetValueMethods.push(setValue);
  
    let scopeId=myCounter++;
    console.log("scopeId: " + scopeId);
  
    function myButtonClick(){
      if(listOfSetValueMethods.length&gt;0){
        listOfSetValueMethods[0](scopeId+1); //does not work
        //works: listOfSetValueMethods[1](scopeId+1); 
        console.log("setted value to:" + (scopeId+1) + ", current value in scope:" + currentScopeId);
      }else{
        setValue(scopeId);
      }
    }
  
    return (
      &lt;div&gt;
        &lt;b onClick={()=&gt;{myButtonClick()}}&gt; id: {currentScopeId}&lt;/b&gt; &lt;br /&gt;
      &lt;/div&gt;
    );
  } 
  </code></pre>
  
  <p>What is the difference between calling <code>listOfSetValueMethods[0](scopeId+1)</code> and  <code>listOfSetValueMethods[X](scopeId+1)</code> whereby <code>X&gt;0</code>?</p>
  
  <p>Output from console:</p>
  
  <pre><code>scopeId: 0
  App.js:13 scopeId: 1
  App.js:19 setted value to:2, current value in scope:-1
  App.js:13 scopeId: 2
  App.js:13 scopeId: 3
  App.js:19 setted value to:2, current value in scope:-1
  App.js:13 scopeId: 4
  </code></pre>
  
  <p>so the current scope id remains at -1!
      App.js:13 scopeId: 5</p>