File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ export const machine = Machine<
1111 CR . MachineEvent
1212> (
1313 {
14- id : 'tutorial ' ,
14+ id : 'root ' ,
1515 context : initialContext ,
1616 initial : 'SelectTutorial' ,
1717 states : {
@@ -42,26 +42,26 @@ export const machine = Machine<
4242 InitializeTutorial : {
4343 onEntry : [ 'tutorialLaunch' ] ,
4444 on : {
45- TUTORIAL_LOADED : 'Tutorial '
45+ TUTORIAL_LOADED : '#tutorial '
4646 }
4747 } ,
4848 }
4949 } ,
5050 ContinueTutorial : {
5151 onEntry : [ 'tutorialContinue' ] ,
5252 on : {
53- TUTORIAL_START : {
54- target : 'Tutorial.LoadNext' ,
55- }
53+ TUTORIAL_START : '#tutorial-load-next'
5654 }
5755 } ,
5856 }
5957 } ,
6058 Tutorial : {
59+ id : 'tutorial' ,
6160 initial : 'Summary' ,
6261 states : {
6362 LoadNext : {
64- onEntry : ( ) => send ( 'LOAD_NEXT' ) ,
63+ id : 'tutorial-load-next' ,
64+ // onEntry: () => send('LOAD_NEXT'),
6565 on : {
6666 LOAD_NEXT : [
6767 {
@@ -144,7 +144,7 @@ export const machine = Machine<
144144 cond : 'hasNextLevel' ,
145145 } ,
146146 {
147- target : 'EndTutorial' ,
147+ target : '#root.Tutorial. EndTutorial' ,
148148 } ,
149149 ] ,
150150 } ,
You can’t perform that action at this time.
0 commit comments