UNPKG

ih-black-lion

Version:

State handler for Arus projects

25 lines (23 loc) 459 B
import { request, invalidate, receive, initState } from '../boilerplate'; import { REQUEST_TG, RECEIVE_TG, INVALIDATE_TG } from '../actionTypes'; export default function (state = initState, action) { switch (action.type) { case REQUEST_TG: return request(state, action); case RECEIVE_TG: return receive(state, action); case INVALIDATE_TG: return invalidate(state, action); default: return state; } }