简体   繁体   中英

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.

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM