Skip to content

Commit

Permalink
bug fix: AsyncActionMiddleware was not defined in list of standard mi…
Browse files Browse the repository at this point in the history
…ddlewares for AsyncStore
  • Loading branch information
beyondeye authored and daely committed Jan 1, 2018
1 parent 3e9e4cd commit 609299a
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -34,7 +35,7 @@ class AsyncStore<S>(initialState: S, private var reducer: Reducer<S>,
return if (!withStandardMiddleware)
res
else
res.applyMiddleware(ThunkMiddleware())
res.applyMiddleware(ThunkMiddleware(),AsyncActionMiddleWare())
}
}
override var state:S=initialState
Expand Down

0 comments on commit 609299a

Please sign in to comment.