I'm currently trying to fetch a document by its ID. Everything works great if the id exists in the collection, however, if document does not exist with given ID the promise does not proc the catch clause on the function.
Shouldn't invalid ID proc the catch clause so the router could reroute to the error page? I have tried capturing the error, however, the code breaks within vuex-easy-firestore code.
Note. Logging mode disabled. When enabled, then returns a string indicating an issue that it couldn't find a document with a given ID.
Hello all,
I'm currently trying to fetch a document by its ID. Everything works great if the id exists in the collection, however, if document does not exist with given ID the promise does not proc the catch clause on the function.
trying to fetch document by its id:
Console shows the following:![image](https://user-images.githubusercontent.com/17711314/82832058-ff6db000-9eb1-11ea-8aba-f2543de47172.png)
Shouldn't invalid ID proc the catch clause so the router could reroute to the error page? I have tried capturing the error, however, the code breaks within vuex-easy-firestore code.
Note. Logging mode disabled. When enabled, then returns a string indicating an issue that it couldn't find a document with a given ID.