title: Reducer error cancelling all Tasks, killing all sagas
body: <p>Twice recently I've encountered an error in a reducer due to an undefined variable.</p>
  
  <p>In both cases this resulted in the application becoming unresponsive because the error had a cascading effect and all my saga "take" commands were cancelled.
  e.g. </p>
  
  <pre><code>Tasks cancelled due to error:
  takeEvery(actionName1, sl)
  takeLatest(actionName2, Yi)
  </code></pre>
  
  <p>etc.</p>
  
  <p>Also, in both cases the fix was simple - to add defensive coding to the reducer to prevent this.</p>
  
  <p>However, the effect is devastating on the app if the code allows an <em>undefined</em> to slip through and I'm wondering if there is another way? </p>
  
  <ul>
  <li>Should I wrap the switch in the reducer with a try/catch? </li>
  <li>Is there a
  way to stop all the tasks cancelling when an error occurs?</li>
  </ul>
  
  <p>Thanks for any input </p>