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

Fix lazy currentUser #586

Merged
merged 2 commits into from
Jun 14, 2016
Merged

Fix lazy currentUser #586

merged 2 commits into from
Jun 14, 2016

Conversation

deontologician
Copy link
Contributor

@deontologician deontologician commented Jun 14, 2016

Fixes #567

The issue was that subscribing to the handshake doesn't force a connection, it only sets a callback whenever the handshake happens to be completed. Now, when subscribing currentUser().fetch() or currentUser.watch() an actual connection will be made.


This change is Reviewable

@deontologician deontologician added this to the Release 1.x.x milestone Jun 14, 2016
@@ -355,3 +356,39 @@ export class Limit extends TermBase {
super(sendRequest, query, [])
}
}


export class UserDataTerm {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is just moved from index.js where it didn't really belong

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant