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

[Doc] Add info about Vuex store #1915

Open
Mikaleb opened this issue Nov 3, 2021 · 0 comments
Open

[Doc] Add info about Vuex store #1915

Mikaleb opened this issue Nov 3, 2021 · 0 comments
Labels
docs needs to be documented

Comments

@Mikaleb
Copy link

Mikaleb commented Nov 3, 2021

Hi,

I just saw something that is not documented at all in the doc at https://nuxtjs.org/docs/directory-structure/store/ :

When a file is in a folder's module, it's going to be interpreted as part of the store.

Example : create a file called whatever.js, instantiate your index.js normally : your new module state has the key whatever in it !

(The only problem I had was that i was including this file for a later use in a method, not to be interpreted, and not to be overriding my index.js file store).

@smarroufin smarroufin added the docs needs to be documented label Nov 3, 2021 — with Volta.net
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs needs to be documented
Projects
None yet
Development

No branches or pull requests

2 participants