Basically involves adding an catch() onto the end of the fetch for data. We should also provide a visual indicator that the required data for searching is missing.
This includes identifying the kind of error that has occurred, and acting based on it (for example, we might want to retry the request in some cases).
Basically involves adding an
catch()
onto the end of the fetch for data. We should also provide a visual indicator that the required data for searching is missing.This includes identifying the kind of error that has occurred, and acting based on it (for example, we might want to retry the request in some cases).