Saturday 28 November 2020

Firestore: Received WebStorage notification for local change. Another client might have garbage-collected our state

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:

  • What's a likely scenario for this to happen?
  • What's the recommended action to recover from this error?

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.



from Firestore: Received WebStorage notification for local change. Another client might have garbage-collected our state

No comments:

Post a Comment