refactoring Composer part3
This commit is contained in:
@ -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"
|
||||
|
Reference in New Issue
Block a user