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:

Get hands-on with 1400+ tech skills courses.