Slide 33
Slide 33 text
actual val store: Store = Store(
state = AppState(),
reducer = ::appReducer,
middleware = listOf(networkMiddleWare, databaseMiddleWare)
)
actual data class AppState(val photoListState: PhotoListState? = null) : StateType
actual fun appReducer(action: Action, state: AppState?): AppState {
return AppState(photoListState = photoListReducer(action, state?.photoListState))
}
Android