From 4c0a169d5de96f02abf05c58266057b8d8eab4cd Mon Sep 17 00:00:00 2001 From: Joffrey Bion Date: Tue, 7 Sep 2021 19:49:39 +0200 Subject: Opt-in delicate GlobalScope in UI root --- sw-ui/src/main/kotlin/org/luxons/sevenwonders/ui/SevenWondersUi.kt | 2 ++ 1 file changed, 2 insertions(+) (limited to 'sw-ui') 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 { val sagaManager = SagaManager() val store = configureStore(sagaManager = sagaManager) -- cgit