fix buggy commit
This commit is contained in:
@ -8,12 +8,11 @@
|
||||
let childStore;
|
||||
|
||||
$: if (me.do) {
|
||||
childStore = me.do.core.subscribeComposer('@ComposerBob');
|
||||
childStore = me.do.subscribeComposer('@ComposerBob');
|
||||
}
|
||||
|
||||
$: {
|
||||
if ($childStore && $childStore.machine.state) {
|
||||
console.log('ALICE machine service: ' + JSON.stringify(me.do.machine));
|
||||
me.do.machine.send($childStore.machine.state);
|
||||
}
|
||||
}
|
||||
|
@ -4,9 +4,11 @@
|
||||
export let machineService;
|
||||
|
||||
const handleButton = () => {
|
||||
console.log('BOB machine service: ' + JSON.stringify(me.do.machine));
|
||||
console.log('Sending TOGGLE event to the machine');
|
||||
me.do.machine.send('TOGGLE');
|
||||
if (me && me.do && me.do.machine) {
|
||||
console.log('BOB machine service: ' + JSON.stringify(me.do.machine));
|
||||
console.log('Sending TOGGLE event to the machine');
|
||||
me.do.machine.send('TOGGLE');
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
||||
|
Reference in New Issue
Block a user