Meteor user logged in before DDP login?


#1

So, I’m doing some logging in my RootComponent:

import { Meteor } from "meteor/meteor"
export default class RootComponent extends Component {
  constructor(props){
    super(props)
    console.log('hello', Meteor.userId())
  }
}

Isn’t this a bit jank according to the DDP protocol? There’s a ‘flicker’ period in typical initial loads for Meteor apps, where the user is in a loggingIn state. Why would the user be logged in prior to the login method call?

Did MDG pull a fast-render on me? :clap::sweat_smile::unamused: