summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoffrey Bion <joffrey.bion@gmail.com>2021-09-07 19:49:39 +0200
committerJoffrey Bion <joffrey.bion@gmail.com>2021-09-07 19:49:39 +0200
commit4c0a169d5de96f02abf05c58266057b8d8eab4cd (patch)
tree6696cbc0d3a8a7c8e604c6ab1e935a974dd73219
parentReplace deprecated icon sizes (diff)
downloadseven-wonders-4c0a169d5de96f02abf05c58266057b8d8eab4cd.tar.gz
seven-wonders-4c0a169d5de96f02abf05c58266057b8d8eab4cd.tar.bz2
seven-wonders-4c0a169d5de96f02abf05c58266057b8d8eab4cd.zip
Opt-in delicate GlobalScope in UI root
-rw-r--r--sw-ui/src/main/kotlin/org/luxons/sevenwonders/ui/SevenWondersUi.kt2
1 files changed, 2 insertions, 0 deletions
diff --git a/sw-ui/src/main/kotlin/org/luxons/sevenwonders/ui/SevenWondersUi.kt b/sw-ui/src/main/kotlin/org/luxons/sevenwonders/ui/SevenWondersUi.kt
index 83e5b593..d6cd1c62 100644
--- a/sw-ui/src/main/kotlin/org/luxons/sevenwonders/ui/SevenWondersUi.kt
+++ b/sw-ui/src/main/kotlin/org/luxons/sevenwonders/ui/SevenWondersUi.kt
@@ -2,6 +2,7 @@ package org.luxons.sevenwonders.ui
import kotlinx.browser.document
import kotlinx.browser.window
+import kotlinx.coroutines.DelicateCoroutinesApi
import kotlinx.coroutines.GlobalScope
import kotlinx.coroutines.launch
import org.luxons.sevenwonders.ui.components.application
@@ -37,6 +38,7 @@ private fun initializeAndRender(rootElement: Element) {
}
}
+@OptIn(DelicateCoroutinesApi::class)
private fun initRedux(): Store<SwState, RAction, WrapperAction> {
val sagaManager = SagaManager<SwState, RAction, WrapperAction>()
val store = configureStore(sagaManager = sagaManager)
bgstack15