Skip to content

Commit

Permalink
方法加强
Browse files Browse the repository at this point in the history
  • Loading branch information
ITGungnir committed May 6, 2019
1 parent 08b2cab commit 16670aa
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,8 @@ open class BaseRedux<T>(
) = currState.map { state -> Tuple4(prop1.get(state), prop2.get(state), prop3.get(state), prop4.get(state)) }
.distinctUntilChanged()

fun currState() = currState.value!!

private fun apply(action: Action, index: Int): Action {
if (index >= middlewareList.size) {
return action
Expand Down

0 comments on commit 16670aa

Please sign in to comment.