Array not being reacting using pinia and options API #1646
-
Hello Vue comunnity, i'm currently trying to work with pinia store, but i havent been able to get it to work Refer here to the: neWProduct method: https://github.com/booleanaVillegas/pinia-test/blob/master/src/stores/products.js and here to where i'm implementing the store: https://github.com/booleanaVillegas/pinia-test/blob/master/src/views/AboutView.vue |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Update: I had 2 errors, first i was using "setup()" method in options api, even though pinia said it was okay, it didn't work properly also, when i change the Store declaration to the "options" store instead i started working immediatelly, not sure why |
Beta Was this translation helpful? Give feedback.
Update: I had 2 errors, first i was using "setup()" method in options api, even though pinia said it was okay, it didn't work properly
also, when i change the Store declaration to the "options" store instead i started working immediatelly, not sure why