DEV Community

Discussion on: Reliable data fetching

Collapse
 
aminnairi profile image
Amin

Correct, you should rather handle the error with a component or a modal (although a modal is not really great in a UX POV, I would rather suggest a toast notification instead which is less violent).

This console.error is here because I can't account for all possible frameworks, or components, or method etc... This is the part where you'll have to work a little bit to implement this solution in your own. 😉