Vuex detect server down

Hi I have my app up and running with Vuex, today when I went for lunch I left the page open in the browser but stopped the dev server, when I came back I noticed loads of xhr errors in the browser console. Is there a way of capturing the server going down and sending an alert to the user? Via a store mutation / property?

Not through Vuex. It’d be up to you to handle errors in your XHR’s. If you’re using a lib like Axios, you can use response interceptors to apply against all requests.