In this video I discuss how I solved the problem of two independent Google Firebase Firestore onSnapshot listeners seeming to interfere with each other by returning the other search's results. It turns out Firestore has a local cache that is shared between all queries that can first be returned with a metadata cache value of true. I needed to implement the includeMetadataChanges config parameter in the onSnapshot set up function call and then ignore the cached results.
Here is the link to the firestore google discussion group that I show in the video:
https://groups.google.com/forum/#!top...
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...
The source code for this project is available publicly on the Dedicated Managers Github account:
https://github.com/DedicatedManagers/...