nuxt / example-auth0

A simple example that shows how to use Nuxt.js with Auth0.
https://auth0.nuxtjs.org
MIT License
722 stars 159 forks source link

[nuxt] state should be a function in store/index.js #19

Closed yinshipeng closed 6 years ago

yinshipeng commented 7 years ago

nuxt error

This question is available on Nuxt.js community (#c14)
promek commented 7 years ago

Try changing the state variable in the store/index.js file as follows.

export const state = () => ({ user: null })

IamManchanda commented 7 years ago

@promek thanks ;)

piiwa commented 6 years ago

Solved, thks @promek Why is it happening ?

klaveren commented 6 years ago

Solved too, thank you.