Cannot update states using this
in Pinia actions
#1267
-
I'm very new to Pinia and had only a little experience with Vuex. I'm trying to update the
This is my @/store/index.js fils
The only way I've been able to successfully update Thank you in advance! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
I believe I found the problem. If use the following syntax for defining actions, they execute without error:
|
Beta Was this translation helpful? Give feedback.
-
Arrow functions don't have their own bindings to this |
Beta Was this translation helpful? Give feedback.
I believe I found the problem. If use the following syntax for defining actions, they execute without error: