title: Angular 2 effect doesn't run do function
body: <p>I got this effect:</p>
  
  <pre><code>@Effect() createModel$: Observable&lt;Action&gt; = this.actions$
    .ofType(CREATE_MODEL_REQUEST)
    .switchMap(action =&gt; this.modelsApi.createModel(action.payload)
      .do(() =&gt; ({type: CREATE_MODEL_SUCCESS}))
      .map(() =&gt; ({type: GET_MODELS_REQUEST}))
      .catch((err: any) =&gt; Observable.of({type: REQUEST_FAILURE, payload: err})));
  </code></pre>
  
  <p>And I'm trying to dispatch a success action to my <code>http</code> reducer which decreases an <code>activeRequests</code> counter if the request is successful. And the <code>.map</code> after it should trigger a new get request that fetches a new list of models from the api.</p>
  
  <p>The problem is that no matter what I do, I can't get both of <code>CREATE_MODEL_SUCCESS</code> and <code>GET_MODELS_REQUEST</code> to run no matter what I seem to try.</p>
  
  <p>How can I make sure that both are run if the initial call of the <code>createModel</code>function is successful?</p>
  
  <p><strong>EDIT:</strong> It does actually seem like the <code>.do</code> is run because if I replace it with a <code>console.log(true)</code> I can see that it runs, but it doesn't dispatch the <code>({type: CREATE_MODEL_SUCCESS})</code>. </p>