Adding Error Handling in Typeahead

Let's add error handling in our application using catchError, updatePageOrErr, and prevent an errored state in the typeahead application using the merge operator.

Right now, a single function (updatePage) is handling all the results. There’s also no error handling.

Error handler

Quick, add an error handler using the techniques you learned in Managing Async:

Access this course and 1400+ top-rated courses and projects.