UNPKG

ih-black-lion

Version:

State handler for Arus projects

16 lines (14 loc) 474 B
import { request, invalidate, receive, initState } from '../boilerplate'; import { REQUEST_PICTURE, RECEIVE_PICTURE, INVALIDATE_PICTURE } from '../actionTypes'; export default function(state = initState, action) { switch (action.type) { case REQUEST_PICTURE: return request(state, action); case RECEIVE_PICTURE: return receive(state, action); case INVALIDATE_PICTURE: return invalidate(state, action); default: return state; } }