You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
OK, I get that I cannot use asyncData into layouts or components, but why it keeps returning me [Vue warn]: Property or method "produtos" is not defined on the instance but referenced during render. Make sure to declare reactive data properties in the data option. ?
I'm already using nuxtServerInit to get some initial data to my state, but I think the right way to pass data to components is by props (I might be wrong here).
What I'm doing wrong here?
This question is available on Nuxt.js community (#c593)
The text was updated successfully, but these errors were encountered:
I'm at
/loja/pages/index.vue
This is my code:
OK, I get that I cannot use asyncData into layouts or components, but why it keeps returning me
[Vue warn]: Property or method "produtos" is not defined on the instance but referenced during render. Make sure to declare reactive data properties in the data option.
?I'm already using
nuxtServerInit
to get some initial data to my state, but I think the right way to pass data to components is byprops
(I might be wrong here).What I'm doing wrong here?
The text was updated successfully, but these errors were encountered: