diff --git a/firebase-firestore-mixin.html b/firebase-firestore-mixin.html index 3b58764..c7b42b3 100644 --- a/firebase-firestore-mixin.html +++ b/firebase-firestore-mixin.html @@ -163,22 +163,22 @@ } connectedCallback() { - if (this[CONNECTED_CALLBACK_TOKEN] === true) { - return; - } - this[CONNECTED_CALLBACK_TOKEN] = true; - - const props = collect(this.constructor, 'properties'); - Object - .values(props) - .forEach(this.constructor._assertPropertyTypeCorrectness); - - for (let name in props) { - const options = props[name]; - if (options.doc || options.collection) { - this._firestoreBind(name, options); + if (this[CONNECTED_CALLBACK_TOKEN] !== true) { + this[CONNECTED_CALLBACK_TOKEN] = true; + + const props = collect(this.constructor, 'properties'); + Object + .values(props) + .forEach(this.constructor._assertPropertyTypeCorrectness); + + for (let name in props) { + const options = props[name]; + if (options.doc || options.collection) { + this._firestoreBind(name, options); + } } } + super.connectedCallback(); }