So I am having some weird problems with my (React) app.
In my very top component (
App), I use a Meteor data container to return the prop
Meteor.user() … and only when this returns a truthy value, I render anything in the app. --> The user should ALWAYS be logged in before anything happens. ( I hope this solution makes sense to you?!)
The weird thing is, that in some cases some publications and method calls return
this.userId. This completely breaks my app in these cases for obvious reasons.
Does anybody have any idea why this might be happening and how to fix this?!