kadirahq / fast-render

Render you app even before the DDP connection is live. - magic?
MIT License
560 stars 80 forks source link

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

Open dearlordylord opened 8 years ago

dearlordylord commented 8 years ago

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 commented 8 years ago

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

dearlordylord commented 8 years ago

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 commented 8 years ago

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 commented 7 years ago

Probably the same issue as https://github.com/kadirahq/fast-render/issues/176