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

Meteor.user() isn't there anymore #168

Open
dearlordylord opened this issue Apr 27, 2016 · 4 comments
Open

Meteor.user() isn't there anymore #168

dearlordylord opened this issue Apr 27, 2016 · 4 comments

Comments

@dearlordylord
Copy link

Hey, I have Meteor.user() call in some routes triggersEnter. It worked before Meteor update (I have 1.3.1currently, didn't checked latest yet) but now only Meteor.userId() call returning an ID.

@dearlordylord
Copy link
Author

Update: it isn't there in latest Meteor also (fast-render is latest too)

@dearlordylord
Copy link
Author

dearlordylord commented Apr 27, 2016

Meteor.user isn't there even if I have it explicitly in flow router subscriptions like

this.register('Me', Meteor.subscribe('Me'));

Where 'Me' is

Meteor.publish('Me', function() {
return Meteor.users.findOne(this.userId);
});

@dearlordylord
Copy link
Author

If I check html code, I definitely have subscription data fetched:

screenshot 2016-04-27 17 34 53

Neither Meteor.users.findOne(Meteor.userId()) nor Meteor.user() does return a user initially though.

Maybe it is flow-router issue?

@SachaG
Copy link

SachaG commented Aug 6, 2016

Probably the same issue as #176

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

2 participants