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

辅助函数连接多个store #1473

Open
hqzh opened this Issue Dec 18, 2018 · 2 comments

Comments

Projects
None yet
2 participants
@hqzh
Copy link

hqzh commented Dec 18, 2018

What problem does this feature solve?

有时我的组件需要连多个store,比如公共的和我自己的

What does the proposed API look like?

import { createNamespacedHelpers } from "vuex";

const {
    mapState,
    mapGetters,
    mapActions,
    mapMutations
         } = createNamespacedHelpers(["myStore","commonStore"]);
@bbbbx

This comment has been minimized.

Copy link

bbbbx commented Jan 16, 2019

@hqzh

This comment has been minimized.

Copy link

hqzh commented Jan 16, 2019

@bbbbx I know this, I think easily API maybe better

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment