Error
TypeError: __WEBPACK_IMPORTED_MODULE_2__store__.default.dispatch is not a function
Inject store to Class (example)
export default class AuthService {
constructor(store) {
this.store = store
}
login() {
this.store.dispatch('someAction')
}
}
Top comments (0)