title: Console outputting state which is not yet updated in Redux reducer
body: <p>First of all, I have no idea if this problem is related to Chrome console, Redux or JavaScript objects.</p>
  
  <p>I have the following function in my React + Redux app:</p>
  
  <pre><code>function InputReducer(state = [{ }], action) {
      console.log('input-reducer.js', 'state', state[0], JSON.stringify(state[0]));
      switch (action.type) {
          case 'STORE_INPUT_VALUE':
              let newState = {};
              newState = state[0];
              _.set(newState, action.storePointer, action.value);
              console.log('input-reducer.js', 'newState', newState, JSON.stringify(newState)); 
              return [newState];
          break;
          default:
              return state;
      }
  }
  </code></pre>
  
  <p>I know the state should not be replaced, but updated instead. Don't mind about it now, this is in the middle of the process.</p>
  
  <p>This works, but what I don't understand is that when I see the logs, when updating the state, the first log returns exactly the same object as the newState. This should not be possible, since as far as I know, the function which updates the state should not be executed at a time when logging happens.</p>
  
  <p>What makes this even more weird is that when I stringify the object, it returns correct, expected values.</p>
  
  <p>If I modify the function to return some nonsense state, like this:</p>
  
  <pre><code>function InputReducer(state = [{ a: 0 }], action) {
      console.log('input-reducer.js', 'state', state[0], JSON.stringify(state[0]));
      switch (action.type) {
          case 'STORE_INPUT_VALUE':
              let k = state[0].a + 1
              let newState = {a: k};
              console.log('input-reducer.js', 'newState', newState, JSON.stringify(newState)); 
              return [newState];
          break;
          default:
              return state;
      }
  }
  </code></pre>
  
  <p>...the logs show the objects correctly... or at least they seem as I would expect them to be.</p>
  
  <p>So what is this behaviour related to and what am I missing here?</p>