Slide 59
Slide 59 text
class LoggingMiddleware : Middleware {
override fun dispatch(store: Store, next: Dispatcher, action: Action): Action {
Log.d("APP", "Dispatching $action")
Log.d("APP", "SearchTeam before reducer ${store.state.listState.searchTerm}")
val nextAction = next.dispatch(action)
Log.d("APP", "SearchTeam after reducer ${store.state.listState.searchTerm}")
return nextAction
}
}
@echenger sli.do#3073