thepassle / pokedex-app

0 stars 0 forks source link

loading and error states #2

Open thepassle opened 3 years ago

thepassle commented 3 years ago

Currently we only account for the API calls to succeed, but we dont show any UI for when an API call fails. It would be nice to have a loading state and an error state as well.

We should implement this for both api calls:

You can use .catch(() => {}) to set error states.

Bartek532 commented 3 years ago

Can I work with this one?