When a component I have is clicked, it triggers a function in the store:
<button @click="this.store.foo()"></button>
Within the store, I am updating a specific property:
state: () => ({
focusIn: false,
}),
actions: {
foo() {
this.focusIn = true;
}
}
My challenge now is figuring out how to ensure that when this focusIn property is changed in the store, it directs the focus to an input within a different component from MyComponent.