Skip to content
This repository was archived by the owner on May 19, 2025. It is now read-only.

Add query property to _firestoreProps in FirestoreMixin.#303

Closed
merlinnot wants to merge 3 commits intoFirebaseExtended:firestorefrom
merlinnot:fix-issue-302
Closed

Add query property to _firestoreProps in FirestoreMixin.#303
merlinnot wants to merge 3 commits intoFirebaseExtended:firestorefrom
merlinnot:fix-issue-302

Conversation

@merlinnot
Copy link
Copy Markdown
Contributor

Fixes #302

This change fixes an issue which occurs when observed/bound properties are defined prior to a call of `connectedCallback`. Since _firestoreUpdateBinding method handles null and undefined values correctly, the `if` statement can be safely removed.
Copy link
Copy Markdown

@danbaechtold danbaechtold left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is a bug on line 168, here is the fix:
this._firestoreUpdateBinding(name, config);

Tested with the official demo:
/bower_components/polymerfire/demo/firebase-firestore.html

Now the demo works (query will now sort the collection). Thanks a a lot!

@merlinnot
Copy link
Copy Markdown
Contributor Author

@danbaechtold I’ve fixed that in #310, thank you.

Closing in favor of #310

@merlinnot merlinnot closed this Jan 5, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants