0👍
You can prepend the variable with underscore and ignore it.
Or you could pass an empty object emitSendMsg({}, msgToSend)
Also, the object passed as first parameter to action is the context
not dispatch
and it is not optional.
If you need only dispatch
you could use object destructuring emitSendMsg({ dispatch }, msgToSend)
- [Vuejs]-What is this configuration error with Vue.js eslint
- [Vuejs]-Laravel vue and js in blade dilemma
Source:stackexchange.com