You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I´m trying to update the user vuex state from a Login component have here. I have very few experience with vuex so I´m little lost in the process... this is how I´m trying:
Finally in the Login.vue component I have the login() method in which I´m trying to call the action
#Login.vue
methods:{
...mapActions([
'updateCurrentUser'
]),
logIn() {
this.$store.commit() // I dont know which parameters to call here
this.currentUser.mutations.set(this.form) // I´ve tried this, but doesn´t work
}
I don´t know if I´m following the correct method resolution order to make this work...
The text was updated successfully, but these errors were encountered:
I´m trying to update the user vuex state from a Login component have here. I have very few experience with vuex so I´m little lost in the process... this is how I´m trying:
user.js
export const updateCurrentUser = ( {commit}, form ) => {
commit('setUser',form)
// context.commit('increment')
}```
#mutation-types
Finally in the Login.vue component I have the login() method in which I´m trying to call the action
#Login.vue
I don´t know if I´m following the correct method resolution order to make this work...
The text was updated successfully, but these errors were encountered: