title: multiple dispatches with callback in react-hook?
body: <p>how to add <code>loading</code> state to true in 'addItem' (reducer case), and set the <code>loading</code> state to false?</p>
  
  <p>But I'm stuck using react-hook
  <a href="https://codesandbox.io/s/new-water-vczdp" rel="nofollow noreferrer">https://codesandbox.io/s/new-water-vczdp</a></p>
  
  <p>I did it here: <a href="https://codesandbox.io/s/react-todolist-3dko3" rel="nofollow noreferrer">https://codesandbox.io/s/react-todolist-3dko3</a> with older react version.</p>
  
  <p>What to do here?</p>
  
  <pre><code>case "addItem": {
        //fakeHttp();
  
        const { toAddItem, items } = state;
        const nextId = +items[items.length - 1].id + 1;
  
        return {
          items: [...items, { id: nextId, name: toAddItem }],
          loading: false
        };
      }
  </code></pre>