aboutsummaryrefslogtreecommitdiff
path: root/kvision-modules/kvision-redux/src
diff options
context:
space:
mode:
Diffstat (limited to 'kvision-modules/kvision-redux/src')
-rw-r--r--kvision-modules/kvision-redux/src/main/kotlin/pl/treksoft/kvision/redux/ReduxStore.kt7
1 files changed, 6 insertions, 1 deletions
diff --git a/kvision-modules/kvision-redux/src/main/kotlin/pl/treksoft/kvision/redux/ReduxStore.kt b/kvision-modules/kvision-redux/src/main/kotlin/pl/treksoft/kvision/redux/ReduxStore.kt
index 474206fc..2c6cb1e9 100644
--- a/kvision-modules/kvision-redux/src/main/kotlin/pl/treksoft/kvision/redux/ReduxStore.kt
+++ b/kvision-modules/kvision-redux/src/main/kotlin/pl/treksoft/kvision/redux/ReduxStore.kt
@@ -80,7 +80,12 @@ class ReduxStore<S : Any, A : RAction>(
},
initialState,
@Suppress("SpreadOperator")
- KVManagerRedux.compose(KVManagerRedux.applyMiddleware(KVManagerRedux.reduxThunk, *middlewares), rEnhancer())
+ (KVManagerRedux.compose(
+ KVManagerRedux.applyMiddleware<S, RAction, WrapperAction, Any, Any>(
+ KVManagerRedux.reduxThunk,
+ *middlewares
+ ), rEnhancer()
+ )).asDynamic()
)
}