Skip to content
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

Parity of response format between ios and android #119

Merged
merged 5 commits into from
Nov 9, 2016

Conversation

chaitanya-bhagavan
Copy link
Contributor

No description provided.

@@ -232,7 +232,7 @@ class DatabaseRef extends ReferenceBase {
const path = this.dbPath();
return this.db.off(path, evt, origCB)
.then(({callback, subscriptions}) => {
if (dbSubscriptions[path] && dbSubscriptions[path][evt].length > 0) {
if (subscriptions[path] && subscriptions[path][evt].length > 0) {
Copy link
Contributor

Choose a reason for hiding this comment

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

I'm not sure what error you were seeing, but by changing this to subscriptions, it becomes functionally broken since we want to remove the JS callbacks from the global dbSubscriptions set. The subscriptions you referenced comes from: https://github.com/chaitanya0bhagvan/react-native-firestack/blob/483e15fd4b7a8256bec99771220c4cc9721e198a/lib/modules/database.js#L490. Probably needs a better name though!

Copy link
Contributor

@auser auser left a comment

Choose a reason for hiding this comment

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

Nice. Looks good to me

@auser auser merged commit ea5e10c into fullstackreact:master Nov 9, 2016
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.

3 participants