When using the firestore emulator and the JavaScript client I am unable to see updates. The scenario is:
-
I have an existing collection of documents and I make a query to fetch the collection. All is working as expected.
-
I update the collection (add, delete or update a document in the collection). Either through code or manually through the emulator web ui.
-
I query the collection. I never see the updates, no matter what i do I only see the results of the first query. The only way i can see the updates is restarting the emulator.
This works just fine when not using the emulator.
Thinking the emulator was forcing a read from cache, I tried to force it to fetch from the server using the getDocsFromServer method, but that didn’t work.
I searched for a know issue with the emulators but haven’t found a reference to this issue. Any help would be much appreciated.