feat(core): introduce reactive services loading mechanism
This commit is contained in:
@ -1,20 +1,12 @@
|
||||
<script>
|
||||
import { onMount } from 'svelte';
|
||||
export let services;
|
||||
export let store;
|
||||
|
||||
let isServicesLoaded = false;
|
||||
let isStoreLoaded = false;
|
||||
|
||||
onMount(async () => {
|
||||
// Check services loading
|
||||
if (services.helloEarthAlert) {
|
||||
// services.helloEarthAlert.alertMe();
|
||||
isServicesLoaded = true;
|
||||
} else {
|
||||
console.error('helloEarthAlert not loaded');
|
||||
}
|
||||
});
|
||||
$: if (services && services.helloEarthAlert) {
|
||||
// services.helloEarthAlert.alertMe();
|
||||
}
|
||||
|
||||
$: if ($store) isStoreLoaded = true;
|
||||
</script>
|
||||
|
Reference in New Issue
Block a user