aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatar Kristóf Marussy <kristof@marussy.com>2023-09-17 19:21:47 +0200
committerLibravatar Kristóf Marussy <kristof@marussy.com>2023-09-17 19:21:47 +0200
commit064af007b2e11c2edb1af455ed366e4d4aeebce8 (patch)
treefc9cf0c59c20d06286e66c881653531848be6d97
parentfix(frontend): compilation on Windows (diff)
downloadrefinery-064af007b2e11c2edb1af455ed366e4d4aeebce8.tar.gz
refinery-064af007b2e11c2edb1af455ed366e4d4aeebce8.tar.zst
refinery-064af007b2e11c2edb1af455ed366e4d4aeebce8.zip
fix(frontend): XState warning
Make sure we do not create conflicting transitions.
-rw-r--r--subprojects/frontend/src/xtext/webSocketMachine.ts7
1 files changed, 3 insertions, 4 deletions
diff --git a/subprojects/frontend/src/xtext/webSocketMachine.ts b/subprojects/frontend/src/xtext/webSocketMachine.ts
index 9113286f..43fbff22 100644
--- a/subprojects/frontend/src/xtext/webSocketMachine.ts
+++ b/subprojects/frontend/src/xtext/webSocketMachine.ts
@@ -175,10 +175,9 @@ export default createMachine(
175 visibleOrUnknown: { 175 visibleOrUnknown: {
176 id: 'tabVisible', 176 id: 'tabVisible',
177 on: { 177 on: {
178 TAB_HIDDEN: [ 178 // The `always` transition will move to `#mayDisconnect`
179 { target: 'hidden.mayDisconnect', in: '#generationIdle' }, 179 // if disconnection is possible.
180 { target: 'hidden.keepAlive', in: '#generationRunning' }, 180 TAB_HIDDEN: '#keepAlive',
181 ],
182 }, 181 },
183 }, 182 },
184 hidden: { 183 hidden: {