-
-
Notifications
You must be signed in to change notification settings - Fork 109
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(firestore): Prevent iOS crash caused by concurrency issue #772
Conversation
…Collection Group Snapshot Listeners
Co-authored-by: Robin Genz <mail@robingenz.dev>
Co-authored-by: Robin Genz <mail@robingenz.dev>
@robingenz I think there is an error introduced in your code suggestion. The dispatch queue of the capacitor bridge is internal so we can't dispatch work onto that queue. The event listeners of |
@TomCarey You are right. Please revert this change. We'll try your approach first. |
This reverts commit caee9d2.
Thanks @robingenz I've reverted that now. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you!
@capacitor-firebase/analytics
@capacitor-firebase/app
@capacitor-firebase/app-check
@capacitor-firebase/authentication
@capacitor-firebase/crashlytics
@capacitor-firebase/firestore
@capacitor-firebase/functions
@capacitor-firebase/messaging
@capacitor-firebase/performance
@capacitor-firebase/remote-config
@capacitor-firebase/storage
commit: |
Close #771
Wraps the
listenerRegistrationMap
in an actor to manage the reading and writing in a thread-safe way. It is necessary becauseaddCollectionSnapshotListener
andaddCollectionGroupSnapshotListener
dispatch a Task in order to build the constraints but then immediately write to thelistenerRegistrationMap
within that Task.Pull request checklist
Please check if your PR fulfills the following requirements:
npm run changeset
).