Add error screen
Is your feature request related to a problem? Please describe. Errors should be bound to the content area and not completely crash the app https://github.com/aave/interface/issues/695
Describe the solution you'd like Default practice in React is to have an error boundary e.g. around the content area and show some sort of error screen so you can still access the navigation & similar.
Describe alternatives you've considered There could be multiple boundaries to have more fine grained control(e.g. a boundary in the modal wrapper to limit the error to the modal). Would go with a global one as a first step though.
Hey @sakulstra Can you please give some screenshot references here?
I'm also curious about types of errors. I'd love to add a system here. As for formats we can use:
- Full screen 'Something went wrong' or 404
- Top banner, like 'No internet connection'
- Dismissable pop-ups
- Warning messages like we show in tx modal
Probably leverage the <ErrorBoundary> from react and scope it to given panels/components across the overall UI. This could be a tool to reach for here. Open question around scoping Next.js-based errors and how <ErrorBoundary /> plays into it.