From 2e4e4bdf5995774af183e9195a932a12e951cb36 Mon Sep 17 00:00:00 2001 From: Samuel Andert Date: Fri, 4 Aug 2023 13:52:37 +0200 Subject: [PATCH] refactoring next part --- .../components/refactor/ComposerAlice.svelte | 2 +- .../components/refactor/ComposerCharly.svelte | 24 ++++++++++++ .../components/refactor/ComposerWrap.svelte | 37 +++++++++++++------ src/lib/core/refactor/Composer.svelte | 25 +++++++++++-- src/lib/core/refactor/coreServices.ts | 19 ++++------ 5 files changed, 79 insertions(+), 28 deletions(-) diff --git a/src/lib/components/refactor/ComposerAlice.svelte b/src/lib/components/refactor/ComposerAlice.svelte index 0a0631c..fe1fcd7 100644 --- a/src/lib/components/refactor/ComposerAlice.svelte +++ b/src/lib/components/refactor/ComposerAlice.svelte @@ -5,7 +5,7 @@ let childData; $: if (me.do) { - childData = me.do.core.subscribeData('@ComposerBob'); + childData = me.do.core.subscribeData('ComposerBob'); } $: { diff --git a/src/lib/components/refactor/ComposerCharly.svelte b/src/lib/components/refactor/ComposerCharly.svelte index 6cdeaa5..6739bca 100644 --- a/src/lib/components/refactor/ComposerCharly.svelte +++ b/src/lib/components/refactor/ComposerCharly.svelte @@ -1,8 +1,32 @@

My ID is: {me.id}

+ my state is {$data.state}

I am charly

+ my data.context prop: {JSON.stringify($data.context)} +
+ + +
diff --git a/src/lib/components/refactor/ComposerWrap.svelte b/src/lib/components/refactor/ComposerWrap.svelte index 49533bb..7ddcd06 100644 --- a/src/lib/components/refactor/ComposerWrap.svelte +++ b/src/lib/components/refactor/ComposerWrap.svelte @@ -1,5 +1,8 @@ -