Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

user data null when loggedIn getter is true #19

Closed
epartipilo opened this issue Nov 16, 2017 · 3 comments
Closed

user data null when loggedIn getter is true #19

epartipilo opened this issue Nov 16, 2017 · 3 comments

Comments

@epartipilo
Copy link
Contributor

epartipilo commented Nov 16, 2017

@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)
@pi0
Copy link
Member

pi0 commented Nov 16, 2017

Hi. Seems a nice idea if we check both using && :)

pi0 pushed a commit that referenced this issue Nov 16, 2017
@pi0
Copy link
Member

pi0 commented Nov 16, 2017

I've made a quick commit. Does it looks good?

@pi0
Copy link
Member

pi0 commented Nov 17, 2017

Shipped in 3.1.1

@pi0 pi0 closed this as completed Nov 17, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants