Name: meteor-user-extra
Owner: PeerLibrary
Description: Extended Meteor.userId() and Meteor.user()
Created: 2015-12-19 12:06:14.0
Updated: 2017-11-07 22:01:18.0
Pushed: 2018-01-16 22:21:44.0
Homepage: https://atmospherejs.com/peerlibrary/user-extra
Size: 9
Language: CoffeeScript
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
Adding this package to your Meteor application:
Meteor.userId()
work also inside the publish endpoint functions (even for Meteor versions prior to 1.5.1)Meteor.user(userId)
into Meteor.user(userId, fields)
which now accepts an argument to limit
queried fields (and thus function's reactivity); userId
is optional and if
not specified Meteor.userId()
is used insteadBoth client and server side.
or add peerlibrary:user-extra
late.user.helpers({
ername: function () {
var user = Meteor.user({username: 1});
return user && user.username;