title: Dispatching multiple actions in redux duplicates the state parameters
body: <p>I have used created two actions and their respective reducers. When i dispatch any single action, both actions initial states are being saved to state where the parameters of the states are duplicated.</p>
  <p>actions/index.js</p>
  <pre><code>import { COUNTER_CHANGE, UPDATE_NAVIGATION } from &quot;../constants&quot;;
  
  export function changeCount(count) {
  
    return {
      type: COUNTER_CHANGE,
      payload: count,
    };
  }
  
  export function updateNavigation(obj) {
  
    return {
      type: UPDATE_NAVIGATION,
      payload: obj,
    };
  }
  </code></pre>
  <p>reducers.js</p>
  <pre><code>import { COUNTER_CHANGE, UPDATE_NAVIGATION } from &quot;../constants&quot;;
  import logger from &quot;redux-logger&quot;;
  
  const initialState = {
    count: 0,
    navigation: {},
  };
  
  export const countReducer = (state = initialState, action) =&gt; {
  
    switch (action.type) {
      case COUNTER_CHANGE:
        return {
          ...state,
          count: action.payload,
        };
  
      default:
        return state;
    }
  };
  
  export const updateNavigation = (state = initialState, action) =&gt; {
  
    switch (action.type) {
      case UPDATE_NAVIGATION:
        return {
          ...state,
          navigation: action.payload,
        };
      default:
        return state;
    }
  };
  // export default countReducer;
  </code></pre>
  <p>reducer/index.js</p>
  <pre><code>import { countReducer, updateNavigation } from &quot;../reducers/countReducer&quot;;
  import { combineReducers } from &quot;redux&quot;;
  
  const allReducers = combineReducers({
    countReducer,
    updateNavigation,
  });
  
  export default allReducers;
  </code></pre>
  <p>Dispatching actions</p>
  <pre><code>componentDidMount = () =&gt; {
      const { navigation } = this.props;
      this.props.updateNavigation(navigation);
  };
  
  const mapDispatchToProps = (dispatch) =&gt; {
    return { ...bindActionCreators({ changeCount, updateNavigation }, dispatch) };
  };
  </code></pre>
  <p>As we can see here I have triggered only updateNavigation action. But it updates states with duplicate parameters in redux state as shown below</p>
  <p><a href="https://i.stack.imgur.com/acLKm.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/acLKm.png" alt="enter image description here" /></a></p>
  <p>The expected o/p will be</p>
  <p>countReducer : {count : 0}
  updateNavigation : {navigation :{}}</p>