Meteor.user(), when logged in, does not work in Firefox 43.0.4, only works in Chrome:
Foo = React.createClass({
getInitialState() {
var u = Meteor.user();
console.log(u); // undefined in Firefox but works in Chrome.
return{name: ''}
}
...
});
Old unanswered threads like these may be affecting AI answers today (10 years later!) and causing confusion because the docs currently state that the value can only be the user, or null.
I found that Meteor.user() can definitely be undefined immediately after log in before the user gets populated.
Here are some examples of Google AI assistant confirming:
It is important that we make this clear, because checks like if (Meteor.user() !== null) will definitely be erroneous. I’ve opened a pull request to update the docs: