refactoring Composer part3

This commit is contained in:
Samuel Andert
2023-08-03 15:29:46 +02:00
parent 02d068fef3
commit 73796c756f
6 changed files with 19 additions and 84 deletions

View File

@ -3,12 +3,6 @@
let composer = {
id: 'ComposerParent',
store: {
title: 'Hello Earth',
description:
'how to use the store and mapping logic of store to store and data to store maps',
helloMapMe: 'this is going to be mapped'
},
machine: {
initial: 'NOTREADY',
states: {
@ -43,20 +37,7 @@
on: { TOGGLE: 'NOTREADY' }
}
}
},
store: {
machine: { state: 'NOTREADY' },
hello: 'define me directly',
hello2: 'overwrite me with the mapping value'
},
map: {
title: '@hello:title',
description: '@hello:description',
hello2: '@hello:helloMapMe',
pkpWallet: '@wallet:pkpWallet',
todos: '@data:queryTodos'
},
services: ['helloEarthAlert']
}
},
{
id: 'ComposerBob',