Put in order · Angular course · Module 10: State Management

The loading effect chain

Order the steps inside the loadSamurai$ Effect (from listening for the action to the result):

Items to put in order

  • catchError(... => of(loadSamuraiFailure(...))) - error action
  • ofType(loadSamurai) - listen for the action
  • map(samurai => loadSamuraiSuccess(...)) - success action
  • switchMap(() => http.get(...)) - call the API

You can check the correct answer by solving this task in the CodeWorlds game.