In trying to add the capability to delete a client/record, I found that the Firestore delete function calls the onSnapshot listener before (I think) it sends the delete to the Firestore database. This caused an error in my app and I had to check for the exists property on the doc var that is available in the onSnapshot.
This video is part of a playlist:
• Real Time Database with Vue.js + Vuex...
It is also part of a blog post on DedicatedManagers.com:
http://www.dedicatedmanagers.com/real...
And the code is available publicly on the Dedicated Managers Github account:
https://github.com/DedicatedManagers/...
The source code for this project is available publicly on the Dedicated Managers Github account:
https://github.com/DedicatedManagers/...