Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
#create an action and some mutations. Use camelCasing for the action!
hygen asyncaction new fetchData
## The above is equivalent to:
# hygen action new fetchData
# hygen mutation new fetchDataStart
# hygen mutation new fetchDataSuccess
# hygen mutation new fetchDataFailure
#create a module
# users = the name of the module directory
hygen vuexmodule new --module=users
#inject the actions / mutations into the module
# The module and actions / mutations must exist first! ( see previous steps )
hygen vuexactions new fetchData --module=users
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.