I have the following helper in Meteor:
fullname(){
return Meteor.user().currentName;
},
But this helper runs every time Meteor.user() changes. I only want it to run when currentName of the user changes, not for example just firstName.
I have the following helper in Meteor:
fullname(){
return Meteor.user().currentName;
},
But this helper runs every time Meteor.user() changes. I only want it to run when currentName of the user changes, not for example just firstName.
Copyright © 2021 Jogjafile Inc.
Use
.findOne()and restrict the keys that are returned: