Firebase Firestore Emulator not updating document queries

When using the firestore emulator and the JavaScript client I am unable to see updates. The scenario is:

  1. I have an existing collection of documents and I make a query to fetch the collection. All is working as expected.

  2. I update the collection (add, delete or update a document in the collection). Either through code or manually through the emulator web ui.

  3. 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.