I am building an object/class factory that creates and handles devices (example – Bluetooth device – read, write, connect, etc).
I do not want to add the object to the vuex store due to potential mutations (talking from past experiences), and prefer to manage/update variables in the store from within the class.
What is the common practice to do that? if possible.
class BluetoothObj extends someVuexClassMaybe{...
If not, are there any recommendations?
class BluetoothObj {
constructor() {
console.log('created bluetooth device')
}
connect() {
}
read() {
}
write() {
}
updateStore() {
}
}