Ankur-Datta-4/blogger

Display appropriate error page

Closed this issue · 1 comments

Amongst:

  • User: not found
  • Blog: not found
  • Bad request pages

Apparently isError in useSWR returns the axios/fetcher error. So, built an error-component which displays error appropriately by receiving isError as props