senior-knights / course-schedulizer

📝 Create semester schedules without stress
https://senior-knights.github.io/course-schedulizer/
MIT License
10 stars 4 forks source link

Bug: Fail safely if data import is not successful #307

Open rpruim opened 1 year ago

rpruim commented 1 year ago

We saw an example at the workshop where an an error during data loading led to a javascript error that caused the app not to display anything. Since things are cached, refreshing the page just led to the same issue. We were able to resolve this by clearing the data from the browser, but it would be better to catch errors and have the app react to them.

charkour commented 1 year ago

Yeah, we should add Error Boundaries to the app in different levels of the component tree. We should use this package because it allows the app to display a fallback where we can provide a reset button.