title: combineLatest. continue observables after getting error
body: <p>I have couple of observables combined in one observable with  <a href="https://www.learnrxjs.io/learn-rxjs/operators/combination/combinelatest" rel="nofollow noreferrer">combineLatest</a>. Also I have one inner <code>switchMap</code> observable that in real example makes an http request to remote server.</p>
  <p>Now I wonder, how can the combined observable continue working in case if <code>switchMap</code> returns error ?</p>
  <p>I've created  simplified example <a href="https://stackblitz.com/edit/typescript-combinelatest-error?devtoolsheight=33&amp;file=index.ts" rel="nofollow noreferrer">here</a></p>
  <pre><code>//emit every 2.5 seconds
  const first = interval(2500);
  //emit every 2 seconds
  const second = interval(2000);
  //emit every 1.5 seconds
  const third = interval(1500);
  //emit every 1 second
  const fourth = interval(1000);
  
  let count = 0;
  
  //emit outputs from one observable
  const example = combineLatest(
    first.pipe(mapTo(&quot;FIRST!&quot;)),
    second.pipe(mapTo(&quot;SECOND!&quot;)),
    third.pipe(mapTo(&quot;THIRD&quot;)),
    fourth.pipe(mapTo(&quot;FOURTH&quot;))
  )
    .pipe(
      switchMap(data =&gt; {
        console.log(data);
        count++;
        // here lets asume in some cases http request getting error
        return count &lt; 5 ? of(&quot;switchMap&quot;) : throwError(&quot;This is an error!&quot;);
      }),
      catchError(err =&gt; of(err))
    )
    .subscribe(val =&gt; console.log(val));
  </code></pre>
  <p>Output</p>
  <pre><code>[&quot;FIRST!&quot;, &quot;SECOND!&quot;, &quot;THIRD&quot;, &quot;FOURTH&quot;]
  switchMap
  [&quot;FIRST!&quot;, &quot;SECOND!&quot;, &quot;THIRD&quot;, &quot;FOURTH&quot;]
  switchMap
  [&quot;FIRST!&quot;, &quot;SECOND!&quot;, &quot;THIRD&quot;, &quot;FOURTH&quot;]
  switchMap
  [&quot;FIRST!&quot;, &quot;SECOND!&quot;, &quot;THIRD&quot;, &quot;FOURTH&quot;]
  switchMap
  [&quot;FIRST!&quot;, &quot;SECOND!&quot;, &quot;THIRD&quot;, &quot;FOURTH&quot;]
  This is an error!
  </code></pre>
  <p>So after getting error <code>combineLatest</code> observable's work stops. In my real example I have 4 filters, and after changing filters I make http request.</p>