-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
Closed
Description
There is a way to pass payload to the mapActions helper?
For example:
Vue.component('login', {
template: template,
data() {
return {
email: "",
password: ""
}
},
methods: {
...mapActions("auth", ["login"])
},
});
How can I pass the email and password to the action without doing this:
this.$store.dispatch("auth/login", {email: this.email, password: this.password});
Tarasovych, manastalukdar, abekdwight, cdecinkoKnight and apirahman55apirahman55
Metadata
Metadata
Assignees
Labels
No labels