title: Redux middleware not dispatching new actions
body: <p>I'm creating a Redux middleware that listens for a specific action. If that action type matches what I'm looking for, I want to dispatch another action. The reason for this is because I have different components with some shared functionality, so I want to update actions to have similar types, but different payloads (term), like so:</p>
  
  <pre><code>const updateActions = store =&gt; next =&gt; action =&gt; {
      console.log(action);
      if (action.type === 'UNIQUE_ACTION_A') {
          return next({ type: 'NEW_ACTION', term: 'new_action_a_test' });
      } else if (action.type === 'UNIQUE_ACTION_B') {
          return next({
              type: 'NEW_ACTION',
              term: 'new_action_b_test'
          });
      }
      return next(action);
  };
  
  const store = createStore(
      rootReducer,
      composeWithDevTools(applyMiddleware(thunk, updateActions))
  );
  </code></pre>
  
  <p>The problem I'm having is that these actions are not dispatching. When I console.log all actions, they continue to run as normal, rather than dispatching the new actions. It's as if the call to dispatch these actions are just being ignored. What am I doing incorrectly here? Thanks!</p>