-
Notifications
You must be signed in to change notification settings - Fork 72
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
firebase-document/collection "reconnect" upon auth #108
Comments
Seems like an oversight. Have you tried to reset the |
So, the "location" that is passed to the element is done so via Polymer data binding:
If I had I am fairly new to Polymer, so apologies that it is not immediately apparent, but would the following work:
I presume this would effectively notify the |
I haven't taken a look a the code, but yea, it'll require a coordinated effort among the related components. The FirebaseQueryBehavior should remain unaware of auth. |
Agreed that it should remain unaware. However, saving the string, providing a I'm okay with closing, but I'll let you decide. Thanks! |
I'm creating a single-page application that gets and displays some data through both firebase-document and firebase-collection. I'm running into an issue with the following workflow (using the more-router for switching between views):
firebase-document
andfirebase-collection
) and displayedThe reason for this is because the
firebase-query-behavior
function_onQueryCancel
calls.disconnect()
(link) which simply sets the location of the query to an empty string.With the current architecture, a future "reconnect" upon re-auth is impossible considering the
firebase-document
s andfirebase-collection
s already exist in the DOM, and are not reloaded (the "location" within thefirebase-query-behavior
is an empty string).Maybe this should be altered to support? I'm now forced to move the login screen and all other screens to separate pages. Or maybe this is by design -- I'd just be interested to know why :)
The text was updated successfully, but these errors were encountered: