From 609299aee10616e236c770cc044cd404d63a5072 Mon Sep 17 00:00:00 2001 From: beyondeye Date: Mon, 1 Jan 2018 13:16:25 +0200 Subject: [PATCH] bug fix: AsyncActionMiddleware was not defined in list of standard middlewares for AsyncStore --- .../kotlin/com/beyondeye/reduks/experimental/AsyncStore.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/reduks-core-async/src/main/kotlin/com/beyondeye/reduks/experimental/AsyncStore.kt b/reduks-core-async/src/main/kotlin/com/beyondeye/reduks/experimental/AsyncStore.kt index 93eba97..02ab217 100644 --- a/reduks-core-async/src/main/kotlin/com/beyondeye/reduks/experimental/AsyncStore.kt +++ b/reduks-core-async/src/main/kotlin/com/beyondeye/reduks/experimental/AsyncStore.kt @@ -2,6 +2,7 @@ package com.beyondeye.reduks.experimental //import android.util.Log import com.beyondeye.reduks.* +import com.beyondeye.reduks.experimental.middlewares.AsyncActionMiddleWare import com.beyondeye.reduks.middlewares.ThunkMiddleware import com.beyondeye.reduks.middlewares.applyMiddleware import kotlinx.coroutines.experimental.DefaultDispatcher @@ -34,7 +35,7 @@ class AsyncStore(initialState: S, private var reducer: Reducer, return if (!withStandardMiddleware) res else - res.applyMiddleware(ThunkMiddleware()) + res.applyMiddleware(ThunkMiddleware(),AsyncActionMiddleWare()) } } override var state:S=initialState