diff options
author | Robert Jaros <rjaros@finn.pl> | 2020-03-27 18:30:42 +0100 |
---|---|---|
committer | Robert Jaros <rjaros@finn.pl> | 2020-03-27 18:30:42 +0100 |
commit | 9e9dc5f75b503def28a814f448f1c366e23c922b (patch) | |
tree | 8d64e959e6de101500d031e973c135ab29c6e639 /kvision-modules | |
parent | ddaa99a3ff9e502a67d11c5aca549a843cd1c3d7 (diff) | |
download | kvision-9e9dc5f75b503def28a814f448f1c366e23c922b.tar.gz kvision-9e9dc5f75b503def28a814f448f1c366e23c922b.tar.bz2 kvision-9e9dc5f75b503def28a814f448f1c366e23c922b.zip |
Upgrade dependencies (Kotlin, coroutines, spring, jooby, redux-kotlin)
Diffstat (limited to 'kvision-modules')
-rw-r--r-- | kvision-modules/kvision-redux-kotlin/src/main/kotlin/pl/treksoft/kvision/redux/ReduxStore.kt | 4 |
1 files changed, 2 insertions, 2 deletions
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<S : Any, A : RAction>( */ fun dispatch(actionCreator: ActionCreator<A, S>) { @Suppress("UNCHECKED_CAST") - val thunk = createThunk<S> { dispatch, getState, _ -> actionCreator(dispatch as ((A) -> Unit), getState) } + val thunk: Thunk<S> = { dispatch, getState, _ -> actionCreator(dispatch as ((A) -> Unit), getState) } store.dispatch(thunk) } |