Access VUEX store inside of LAYOUT files
[issue link]Hi guys, i’ve been having problems reading the $store object on the layout files, i want to know if this is because of design of VUE or it’s just a feature that will be implemented.
I have the following vuetify app on my layout:
<v-app :dark="store.state.dark">...</v-app>
But i’m getting the following error: “Cannot read property ‘state’ of undefined”
If I try to modify the $store object. It is going to throw the same kind of error “Cannot read the property commit of undefined”.
Is this a current limitation? An error? A technical decision?
(For Writing on the STORE: I had to create a component and reference the store from the component)