refactoring Composer part3

This commit is contained in:
Samuel Andert
2023-08-03 15:29:46 +02:00
parent 02d068fef3
commit 73796c756f
6 changed files with 19 additions and 84 deletions

View File

@ -1,4 +1,5 @@
<script>
export let me;
export let services;
export let store;
@ -6,8 +7,8 @@
let childStore;
$: if (services.core) {
childStore = services.core.subscribeComposer('@ComposerBob');
$: if (me.do) {
childStore = me.do.subscribeComposer('@ComposerBob');
}
$: {
@ -19,6 +20,8 @@
</script>
<div class="p-2 border-2 border-blue-500">
<p>My ID is: {me.id}</p>
I am the parent, this is my state: {$store.machine.state}
<div
class="p-2 border-2"