Skip to content

user data null when loggedIn getter is true #19

Closed

Description

@pi0
I have a header which shows user data when user is loggedIn but as the time the loggedIn value change and the component renders the user data is not already fetched so it gives and user undefined attribute so to show user data I have to check if user is defined or not.

As the user endpoint is required, what if the loggedIn is consider if token (in case of enabled) and user data are defined?

This question is available on Nuxt.js community (#c14)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions