vuex-module-decorators icon indicating copy to clipboard operation
vuex-module-decorators copied to clipboard

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

Open atom-7 opened this issue 3 years ago • 2 comments

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

atom-7 avatar May 22 '21 09:05 atom-7

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

alecgibson avatar Jul 19 '23 12:07 alecgibson

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

alecgibson avatar Jul 19 '23 14:07 alecgibson