FirebaseExtended / polymerfire

Polymer Web Components for Firebase
https://www.webcomponents.org/element/firebase/polymerfire
MIT License
459 stars 142 forks source link

Firestore: ensure mixin being applied no more than once. #300

Closed merlinnot closed 5 years ago

merlinnot commented 7 years ago

Inexperienced users may apply FirestoreMixin more than once to the same element. In that case, we can have some nasty race conditions and errors like doubled values etc.

merlinnot commented 6 years ago

I came to a conclusion that it's better to handle this use case rather than throw an error. It can be useful if a user has multiple mixins relying on FirestoreMixin.