refactoring Composer part3
This commit is contained in:
@ -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',
|
||||
|
Reference in New Issue
Block a user