We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hello,
I was wondering if removeBinding(ref) is perhaps async, or am I missing something else?
In this code onFailure is called after calling logout():
listenToAuth = () => { this.listenerAuth = auth.onAuthStateChanged((user) => { if (user) { ....... if (this.listenerUser) { base.removeBinding(this.listenerUser); } this.listenerUser = base.bindToState('user/' + user.uid, { context: this, state: 'user', asArray: false, then: () => {.......}, onFailure: (err) => {.......} }) } }) }); logout = () => { if (this.listenerUser) { base.removeBinding(this.listenerUser); } auth.signOut(); };
The signout of Firebase is called after removing all listeners and the user should be null, but the onFailure is still being called.
The text was updated successfully, but these errors were encountered:
@henkiejan removeBinding should be synchronous. Will see if I can reproduce because that looks right to me. Thanks for reporting.
Sorry, something went wrong.
No branches or pull requests
Hello,
I was wondering if removeBinding(ref) is perhaps async, or am I missing something else?
In this code onFailure is called after calling logout():
The signout of Firebase is called after removing all listeners and the user should be null, but the onFailure is still being called.
The text was updated successfully, but these errors were encountered: