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

Vuex state properties didn't update in vue-devtools #1256

Closed
pixieaka opened this issue Aug 20, 2020 · 1 comment
Closed

Vuex state properties didn't update in vue-devtools #1256

pixieaka opened this issue Aug 20, 2020 · 1 comment

Comments

@pixieaka
Copy link

pixieaka commented Aug 20, 2020

Capture

export default new Vuex.Store({
    state: {
        user: 'test'
    },
    mutations: {
    },
    actions: {
    },
    modules: {
    }
});
<template>
    <div class="about">
        <h1>This is an about page</h1>
        <button @click="done">done</button>
    </div>
</template>

<script>
export default {
    methods: {
        done() {
            this.$store.commit.user = "test2";
            console.log(this.$store.commit.user);
        },
    },
};
</script>

After click done button

11

22

@vue-bot
Copy link

vue-bot commented Aug 20, 2020

Hello, thank you for taking time filling this issue!

However, we kindly ask you to use our Issue Helper when creating new issues, in order to ensure every issue provides the necessary information for us to investigate. This explains why your issue has been automatically closed by me (your robot friend!).

I hope to see your helper-created issue very soon!

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

2 participants