title: How get updated state in produce of immer
body: <p>Consider the following reducer:</p>
  
  <pre><code>const initialBaseTestState = {
    oldValue: "String",
    something: "String two",
  };
  
  const baseTest = produce((state = initialBaseTestState, action) =&gt; {
  const { type, data } = action;
  switch (type) {
   case SET_VALUE: {
    state.newValue = "test";
    sendUpdatedState(original(state)); // Send updated state  
    return state;
  }
  </code></pre>
  
  <p>Code of function sendUpdatedState:</p>
  
  <pre><code>export const updateMonthlyTotalPrice = updatedState =&gt; {
    const dispatch = useDispatch();
    console.log(updatedState); 
    // Getting: {oldValue: "String", something: "String two"} 
    // Requiring: {oldValue: "String", something: "String two", newValue: "test"} 
    const string = updatedState.newValue + "s";  
    dispatch(setSomeValueAction(string));
  };
  </code></pre>
  
  <p>I know when the <code>original</code> is called with 'old' state, so why I am getting the <code>initialBaseTestState</code>. Is it some approach to get already updated <code>state</code> after the <code>state.newValue</code> is updated in <code>produce</code>. </p>
  
  <p>NOTE: I would like to keep using the Immer</p>