refactoring next part
This commit is contained in:
@ -3,6 +3,7 @@
|
||||
import { assign } from 'xstate';
|
||||
import { queryMessages } from '$lib/data/queryMessages';
|
||||
import { get } from 'svelte/store';
|
||||
import { coreServices } from '$lib/core/refactor/coreServices';
|
||||
|
||||
let composer = {
|
||||
id: 'ComposerParent',
|
||||
@ -30,18 +31,15 @@
|
||||
id: 'ComposerCharly',
|
||||
component: 'ComposerCharly',
|
||||
slot: 'aside',
|
||||
data: {},
|
||||
machine: {
|
||||
initial: 'LOADING',
|
||||
context: {
|
||||
hello: 'start',
|
||||
messages: []
|
||||
},
|
||||
// context: {
|
||||
// hello: 'start',
|
||||
// messages: []
|
||||
// },
|
||||
states: {
|
||||
LOADING: {
|
||||
entry: assign({
|
||||
messages: (context, event) => get(queryMessages)
|
||||
}),
|
||||
entry: () => {},
|
||||
on: {
|
||||
TOGGLE: {
|
||||
target: 'READY'
|
||||
|
Reference in New Issue
Block a user