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

Call to withTracker is incorrect #137

Open
aksarben09 opened this issue Feb 13, 2018 · 2 comments
Open

Call to withTracker is incorrect #137

aksarben09 opened this issue Feb 13, 2018 · 2 comments

Comments

@aksarben09
Copy link

aksarben09 commented Feb 13, 2018

In 1.3.0, the call to withTracker is not correct. Instead, it should be

const LoginFormContainer = withTracker(() => {
  // Listen for the user to login/logout and the services list to the user.
  Meteor.subscribe('servicesList');
  return ({
    user: Accounts.user(),
  });
})(LoginForm);

With current version, LoginForm will not render and React 15 will complain A valid React element (or null) must be returned. This makes the package unusable. I created a PR #138 for this.

@minhuyen
Copy link

The same issue

@lawrentiy
Copy link
Contributor

Is there any moving for solve that problem and use accounts-ui?
Thanx

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

No branches or pull requests

3 participants