Added auto import of services to the composite

This commit is contained in:
Samuel Andert
2023-07-25 11:20:51 +02:00
parent 70fe76279e
commit ab92110970
6 changed files with 101 additions and 13 deletions

View File

@ -2,9 +2,19 @@
export let id;
import { getComponentStore } from '$lib/stores/componentStores.ts';
import { onMount } from 'svelte';
const store = getComponentStore(id);
$: console.log('store:', $store);
export let setupLitProvider;
let provider;
onMount(async () => {
provider = await setupLitProvider.setupLitProvider();
console.log('provider ' + JSON.stringify(provider));
});
</script>
<div class="p-12 bg-blue-400">Hello Earth {JSON.stringify($store)}</div>