From 9e9dc5f75b503def28a814f448f1c366e23c922b Mon Sep 17 00:00:00 2001 From: Robert Jaros Date: Fri, 27 Mar 2020 18:30:42 +0100 Subject: Upgrade dependencies (Kotlin, coroutines, spring, jooby, redux-kotlin) --- .../src/main/kotlin/pl/treksoft/kvision/redux/ReduxStore.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'kvision-modules') diff --git a/kvision-modules/kvision-redux-kotlin/src/main/kotlin/pl/treksoft/kvision/redux/ReduxStore.kt b/kvision-modules/kvision-redux-kotlin/src/main/kotlin/pl/treksoft/kvision/redux/ReduxStore.kt index 45f743f3..040b8631 100644 --- a/kvision-modules/kvision-redux-kotlin/src/main/kotlin/pl/treksoft/kvision/redux/ReduxStore.kt +++ b/kvision-modules/kvision-redux-kotlin/src/main/kotlin/pl/treksoft/kvision/redux/ReduxStore.kt @@ -24,9 +24,9 @@ package pl.treksoft.kvision.redux import org.reduxkotlin.ActionTypes import org.reduxkotlin.Middleware import org.reduxkotlin.Store +import org.reduxkotlin.Thunk import org.reduxkotlin.applyMiddleware import org.reduxkotlin.createStore -import org.reduxkotlin.createThunk import org.reduxkotlin.createThunkMiddleware import pl.treksoft.kvision.state.ObservableState @@ -92,7 +92,7 @@ class ReduxStore( */ fun dispatch(actionCreator: ActionCreator) { @Suppress("UNCHECKED_CAST") - val thunk = createThunk { dispatch, getState, _ -> actionCreator(dispatch as ((A) -> Unit), getState) } + val thunk: Thunk = { dispatch, getState, _ -> actionCreator(dispatch as ((A) -> Unit), getState) } store.dispatch(thunk) } -- cgit