Skip to content

Fix auth user and user map #95

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

Merged
merged 9 commits into from
Nov 4, 2016
Merged

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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants