Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit7f0dd62

Browse files
committed
use chart ids
1 parent0d1a30a commit7f0dd62

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

‎src/state/machine.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff 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
},

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp