Possibility of define vuex plugin into the module
See original GitHub issueHi guys! I think it will be great to define vuex plugin into the module:
@Module
class MyModule extends VuexModule {
.....
@Plugin
myPlugin() {
return store => ....
}
}
Often more logical to define plugin into the module instead store. And I think Plugin decorator is very suitable to solve this problem
Issue Analytics
- State:
- Created 5 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
Use Vue.js plugin in Vuex Store module - Stack Overflow
Show activity on this post. The cleanest way I found is to import Vue in the store/module and then use the plugin via...
Read more >Modules | Vuex
To help with that, Vuex allows us to divide our store into modules. Each module can contain its own state, mutations, actions, getters,...
Read more >Unit testing Vuex modules with Jest - LogRocket Blog
What is Vuex ? ... Vuex is a state management pattern and library for Vue applications that allows you to use centralized state...
Read more >A Practical Guide to Harlem - Medium
Harlem — A simple alternative to Vuex for Vue 3 ... Next, register this extension on the module you want to include actions...
Read more >Vuex-persist - npm.io
A Typescript-ready Vuex plugin that enables you to save the state of your app to ... being overwritten with the default state defined...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Plugins exist on store not on a particular module
On Thu 27 Dec, 2018, 10:52 PM Architect Of Web <notifications@github.com wrote:
Good Tip. Just implemented in on the main index store