breaking changes, major refactoring of Composite

This commit is contained in:
Samuel Andert
2023-07-26 09:23:15 +02:00
parent 858d21e7db
commit 0161f4ba4f
14 changed files with 212 additions and 215 deletions

View File

@ -1,16 +1,19 @@
<script>
export let id;
import { getComponentStore } from '$lib/stores/componentStores.ts';
import { getCompositeStore } from '$lib/core/compositeStores';
import { onMount } from 'svelte';
const store = getComponentStore(id);
const store = getCompositeStore(id);
export let helloEarthAlert;
export let services;
onMount(async () => {
helloEarthAlert.alertMe();
console.log('should alerted by now');
if (services && services.helloEarthAlert) {
console.log('Alerted by HelloEarthAlert');
} else {
console.error('Services or helloEarthAlert not loaded');
}
});
</script>