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

Mixing multiple submodule actions #31

Closed
fobdy opened this issue Dec 30, 2015 · 3 comments
Closed

Mixing multiple submodule actions #31

fobdy opened this issue Dec 30, 2015 · 3 comments

Comments

@fobdy
Copy link

fobdy commented Dec 30, 2015

As i've understood the concept all our actions have to be merged in one object.

So what with action's name isolation (namespaces) when i'm using one store with many submodule actions?

@fobdy
Copy link
Author

fobdy commented Jan 28, 2016

Any news? :)

@bradstewart
Copy link

Per the suggestion in the docs, I have one single actions.js file which defines all of the actions. Initial state and mutations are broken up into modules, and I've just been naming the mutations in a given module with the same prefix. E.g. in module foo you'd have FOO_BAR, FOO_BAR_FAILURE, FOO_BAR_SUCCESS or something.

@yyx990803
Copy link
Member

No longer relevant as of 0.5+

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

3 participants