Skip to content

Conversation

@BlooJeans
Copy link
Contributor

user wasn't actually being used in userCallback. I changed all usages to this.user syntax to make it more clear if it's a field variable or not.

Similarly, the WritableMap userMap = getUserMap(); wasn't being used, so userCallback wasn't being populated correctly

@BlooJeans
Copy link
Contributor Author

Also upgrades firebase to 9.8.0, which fixes a bug that prevented you from using your own notification icon (firebase/quickstart-android#4)

Various fixes / changes: - dont call removeDBHandlers() when calling .on() - Dont destroy and recreate the monolithic listener for each path - handleDatabaseEvent only forwards it to javascript if anyone is listening to that eventType Previously: - Calling ref.on(eventType) would erase pre-existing listeners - eventType handlers were getting called with the wrong eventType
@BlooJeans
Copy link
Contributor Author

Really this should've been two PRs, but meh. Listeners should be much more reliable now. If anyone has been experiencing weirdness with firebase seemingly losing connections, this PR might fix your problems. But no promises 👍

@auser auser merged commit 9a05b23 into fullstackreact:master Nov 4, 2016
@BlooJeans BlooJeans deleted the fix-auth-user branch November 9, 2016 16:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants