Closed adamb closed 4 years ago
Hi, technically, only the persistence option of the store may fail:
firebase.app.firestore().enablePersistence().catch(error => {})
After that, it's the requests to the store that fail, hang or succeed. It's up to you to display a spinner or something until you have the data, or an error message if your get request failed. We can't tell you how to design your app, it depends on your needs. I hope it makes things a bit clearer.
In the setup you mention:
But it's not clear how to open an error page from inside the init. A hint or example would be helpful.
I tried making an error page but can't access the router from inside the
~store/index.js:initFirebase()
function.