Skip to content

On resume User is temporarily null after loggingIn is set to false #58

@ToyboxZach

Description

@ToyboxZach

When reconnecting to the server the order of events is

Meteor.status().connected == true
Meteor.loggingIn() == true
Meteor.loggingIn() == false
Meteor.user() gets set

When I would expect

Meteor.status().connected == true
Meteor.loggingIn() == true
Meteor.user() gets set
Meteor.loggingIn() == false

This inconsistency makes it hard to get the loading states to look right since there is a time that the user is not there but it is not loggingIn and connected.

To work around I need to check if Meteor._userIdSaved is set to see if it's going to load it still, but it is not ideal looking at a private variable.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions