added dynamic data loading and mapping towards components.

This commit is contained in:
Samuel Andert
2023-07-26 15:16:41 +02:00
parent 14aad071f4
commit 920e7b7ca1
6 changed files with 99 additions and 17 deletions

View File

@ -1,5 +1,8 @@
<script>
import Composite from '$lib/core/Composite.svelte';
import { dataStore } from '$lib/core/dataLoader';
$: console.log('Data Store contents:', $dataStore);
let composite = {
id: 'composite',
@ -29,7 +32,10 @@
component: 'HelloEarth',
slot: 'top',
map: {
pkpWallet: 'w.pkpWallet'
pkpWallet: 'w.pkpWallet',
rpcURL: 'w.rpcURL',
messages: 'data.queryMessages',
todos: 'data.queryTodos'
},
services: ['helloEarthAlert']
},