breaking changes, major refactoring of Composite
This commit is contained in:
@ -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>
|
||||
|
||||
|
Reference in New Issue
Block a user