abstracted subscribe to state in composite

This commit is contained in:
Samuel Andert
2023-07-26 11:11:12 +02:00
parent e3f2dbacc8
commit 5c2f7afa5f
3 changed files with 21 additions and 16 deletions

View File

@ -130,7 +130,7 @@ ${composite.layout.rows ? `grid-template-rows: ${composite.layout.rows};` : ''}
<svelte:component
this={Component}
id={composite.id}
{...composite.store}
store={getCompositeStore(composite.id)}
services={serviceProps}
/>
{:else if composite.component}
@ -147,7 +147,7 @@ ${composite.layout.rows ? `grid-template-rows: ${composite.layout.rows};` : ''}
<svelte:component
this={ChildComponent}
id={child.id}
{...child.store}
store={getCompositeStore(child.id)}
services={childServiceProps}
/>
{#if child.children && child.children.length}