I'm getting the following error coming from Firestore
.
"Firestore (7.24.0): Received WebStorage notification for local change.
Another client might have garbage-collected our state",
The issue seems to be coming from this exact line in Firestore JS SDK: https://github.com/firebase/firebase-js-sdk/blob/master/packages/firestore/src/local/shared_client_state.ts#L759
I do have persistence support (offline support) enabled with:
firebase.firestore.enablePersistence({ synchronizeTabs: true });
I'm not too familiar with the internal implementation of the SDK, so it would be nice to know:
The UX in the app is just a hanged app that seems to fail in its read/write operations until the app itself is killed and restored.
An update to a Cloud Firestore document, where data is unchanged (a no-op write), will not generate an update or write event. It is not possible to add events to specific fields.
Cloud Firestore function triggers The Cloud Functions for Firebase SDK exports a functions.firestore object that allows you to create handlers tied to specific Cloud Firestore events. Note: Cloud Firestore events will trigger only on document changes.
Alternatively, you can use the get function to access specific fields: Each function invocation is associated with a specific document in your Cloud Firestore database. You can access that document as a DocumentReference in the ref property of the snapshot returned to your function.
Like Realtime Database, Cloud Firestore uses data synchronization to update data on any connected device. However, it's also designed to make simple, one-time fetch queries efficiently.
It seems that this is a known issue and Firebase Engineering Team is working on solving it.
I created an issue with Google Issue Tracker for you.
However there is no ETA and all future updates will be provided on that thread.
Please “star” the issue to receive comments and status updates.
#EDIT:
I was informed by the Firestore Engineering Team that this log message doesn't affect the SDK functionality and you can ignore this message. However we prioritize the issue in order to fix the root cause.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With