@@ -90,16 +90,16 @@ export const workspaceMachine = createMachine(
90
90
invoke : {
91
91
id : "refreshWorkspace" ,
92
92
src : "refreshWorkspace" ,
93
- onDone : { target : "waiting" , actions : "assignWorkspace" } ,
93
+ onDone : { target : "waiting" , actions : "assignWorkspace" } ,
94
94
onError : { target : "waiting" , actions : "assignRefreshWorkspaceError" } ,
95
95
} ,
96
96
} ,
97
97
waiting : {
98
98
after : {
99
- 1000 : "refreshingWorkspace"
100
- }
101
- }
102
- }
99
+ 1000 : "refreshingWorkspace" ,
100
+ } ,
101
+ } ,
102
+ } ,
103
103
} ,
104
104
breadcrumb : {
105
105
initial : "gettingTemplate" ,
@@ -145,10 +145,7 @@ export const workspaceMachine = createMachine(
145
145
on : {
146
146
START : "requestingStart" ,
147
147
STOP : "requestingStop" ,
148
- RETRY : [
149
- { cond : "triedToStart" , target : "requestingStart" } ,
150
- { target : "requestingStop" }
151
- ] ,
148
+ RETRY : [ { cond : "triedToStart" , target : "requestingStart" } , { target : "requestingStop" } ] ,
152
149
UPDATE : "refreshingTemplate" ,
153
150
} ,
154
151
} ,
@@ -159,13 +156,13 @@ export const workspaceMachine = createMachine(
159
156
src : "startWorkspace" ,
160
157
onDone : {
161
158
target : "idle" ,
162
- actions : "assignBuild"
159
+ actions : "assignBuild" ,
163
160
} ,
164
161
onError : {
165
162
target : "idle" ,
166
- actions : "assignBuildError"
167
- }
168
- }
163
+ actions : "assignBuildError" ,
164
+ } ,
165
+ } ,
169
166
} ,
170
167
requestingStop : {
171
168
entry : "clearBuildError" ,
@@ -174,13 +171,13 @@ export const workspaceMachine = createMachine(
174
171
src : "stopWorkspace" ,
175
172
onDone : {
176
173
target : "idle" ,
177
- actions : "assignBuild"
174
+ actions : "assignBuild" ,
178
175
} ,
179
176
onError : {
180
177
target : "idle" ,
181
- actions : "assignBuildError"
182
- }
183
- }
178
+ actions : "assignBuildError" ,
179
+ } ,
180
+ } ,
184
181
} ,
185
182
refreshingTemplate : {
186
183
entry : "clearRefreshTemplateError" ,
@@ -189,15 +186,15 @@ export const workspaceMachine = createMachine(
189
186
src : "getTemplate" ,
190
187
onDone : {
191
188
target : "requestingStart" ,
192
- actions : "assignTemplate"
189
+ actions : "assignTemplate" ,
193
190
} ,
194
191
onError : {
195
192
target : "idle" ,
196
- actions : "assignRefreshTemplateError"
197
- }
198
- }
193
+ actions : "assignRefreshTemplateError" ,
194
+ } ,
195
+ } ,
199
196
} ,
200
- }
197
+ } ,
201
198
} ,
202
199
} ,
203
200
} ,
0 commit comments