acdh-oeaw / vicav-vue3

Reimplementation of the VICAV Frontend based on Vue.js 3
https://vicav-vue.acdh-ch-dev.oeaw.ac.at
MIT License
0 stars 0 forks source link

fix: avoid serverside fetch errors #107

Closed stefanprobst closed 10 months ago

stefanprobst commented 10 months ago

this catches any errors from network requests while pre-rendering serverside (which would redirect to error page with 500 status code), and delegates error handling to the client, i.e. vue-query's global error handler, which will show a toast notification.

x-ref #103

ttechnicus commented 10 months ago

merged into https://github.com/acdh-oeaw/vicav-vue3/tree/102-create-fallback-page-when-api-is-offline