Action not updating array of object state (Vue 3) #1927
Unanswered
mianfg
asked this question in
Help and Questions
Replies: 1 comment
-
@mianfg have you found a way to fix this problem? I believe I have a similar issue so I'm wondering what you did? My use case is slightly different because I only update an item of the array but it also doesn't trigger a change even with |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I am using Vue 3 and Pinia, and I have a store
cards.js
, like this one:Then, inside a component, I use something like this:
However, even though when I click in the button, console output after mofifying
this.cards
(*) is:(Hence the array is being correctly generated) Inside of Vue devtools I can see the state
cards
has not changed (as well as I can see it in the application).Any help would be appreciated. Thank you.
Beta Was this translation helpful? Give feedback.
All reactions