Skip to content

Vuex cant read/update my initial states #1706

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

Closed
AugustodeAraujo opened this issue Feb 10, 2022 · 1 comment
Closed

Vuex cant read/update my initial states #1706

AugustodeAraujo opened this issue Feb 10, 2022 · 1 comment

Comments

@AugustodeAraujo
Copy link

Version

6.0.5

Browser and OS info

Windows 10 / Chrome 98.0.4758.82

Steps to reproduce

I have a method on nuxtServerInit that mutate my states. It works, but on Vue Devtools it shows empty as initial state, even if I dispatch another action.

What is expected?

Expected on nuxtServerInit

totalResume: {10000}

What is actually happening?

totalResume: {0}

And it does not change on nuxtServerInit or even if I dispatch another action.

@Akryum
Copy link
Member

Akryum commented Feb 10, 2022

Duplicate of #1703

@Akryum Akryum marked this as a duplicate of #1703 Feb 10, 2022
@Akryum Akryum closed this as completed Feb 10, 2022
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