Skip to content

Call to withTracker is incorrect #137

@aksarben09

Description

@aksarben09

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions