const readingListMachine = Machine({ id: 'interview_Panel', initial: 'interview', type: 'parallel', states: { filterState: { on: { A_FILTER_DELETED: 'filterState', } }, idle:{ on:{ B_SELECTED: 'selected', }}, selected:{ initial: 'active', states:{ active: { on:{ C_ALL_SELECTED: 'allSelected', D_PRINTED_MULTIPLE:'loading', }}, loading:{ on: { E_COMPLETED:'active', F_CANCELLED: 'active' } }, allSelected: { on: { G_UNSELECTED_ALL: 'active' }} } }} });