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

Commit4feed76

Browse files
committed
fix startup issue
1 parenta12f254 commit4feed76

File tree

1 file changed

+19
-12
lines changed

1 file changed

+19
-12
lines changed

‎src/state/machine.ts

Lines changed: 19 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ export const machine = Machine<
2020
initial:'Initial',
2121
states:{
2222
Initial:{
23-
after:{
24-
2000:'Startup'
23+
on:{
24+
WEBVIEW_INITIALIZED:'Startup'
2525
}
2626
},
2727
Startup:{
@@ -50,7 +50,7 @@ export const machine = Machine<
5050
ContinueTutorial:{
5151
onEntry:['tutorialContinue'],
5252
on:{
53-
TUTORIAL_START:'#tutorial-load-next'
53+
TUTORIAL_START:'#tutorial-load-current'
5454
}
5555
},
5656
}
@@ -66,6 +66,13 @@ export const machine = Machine<
6666
0:'Summary'
6767
}
6868
},
69+
LoadCurrent:{
70+
id:'tutorial-load-current',
71+
// TODO: verify current is not complete
72+
after:{
73+
0:'Stage'
74+
},
75+
},
6976
LoadNext:{
7077
id:'tutorial-load-next',
7178
onEntry:['tutorialLoadNext'],
@@ -120,14 +127,9 @@ export const machine = Machine<
120127
TestPass:{
121128
onEntry:['testPass','stepComplete'],
122129
after:{
123-
1000:{
124-
target:'StepNext',
125-
cond:'hasNextStep',
126-
}
127-
},
128-
on:{
129-
NEXT:'StageComplete',
130+
1000:'StepNext',
130131
},
132+
131133
},
132134
TestFail:{
133135
onEntry:['testFail'],
@@ -138,8 +140,13 @@ export const machine = Machine<
138140
StepNext:{
139141
onEntry:['stepLoadNext'],
140142
after:{
141-
0:'Normal'
142-
}
143+
0:[{
144+
target:'Normal',
145+
cond:'hasNextStep',
146+
},{
147+
target:'StageComplete'
148+
}]
149+
},
143150
},
144151
StageComplete:{
145152
onEntry:'stageComplete',

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp