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

In vuex4 version, the data returned by Getter is not responsive. #365

Open
atom-7 opened this issue May 22, 2021 · 2 comments
Open

In vuex4 version, the data returned by Getter is not responsive. #365

atom-7 opened this issue May 22, 2021 · 2 comments

Comments

@atom-7
Copy link

atom-7 commented May 22, 2021

When I use Get to create a Getter, for use in the page, the value of the repository has changed, but the value of the page does not change accordingly.

"vue": "^3.0.5" "vuex": "^4.0.0-0", "vuex-module-decorators": "^1.0.1",

here is store code
image
here is Page Code
image

The formState.coverDoamin doesn't change, When i update the Store's data ,
But it will have no problem if I use computed.
image

How could I make it work without use Computed API

@alecgibson
Copy link

We're running into exactly this issue. This worked fine in vuex@3, but doesn't work in vuex@4

@alecgibson
Copy link

Okay actually after doing some more digging/reading, our issue is actually an upstream vuex issue where registering a dynamic module breaks reactivity

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