recommondReducer.js 534 Bytes
/**
 * Created by jone on 2017/4/20.
 */
'use strict';

import InitialState from './recommondInitialState';
const {
    GET_RECMOMMOND_APP

} = require('../../constants/actionTypes').default;

const initialState = new InitialState;

export default function recommondReducer(state = initialState, action) {
    if (!(state instanceof InitialState)) return initialState.merge(state);
    switch (action.type) {
        case GET_RECMOMMOND_APP:
            return state.setIn(['recommondList', 'data'], null);
    }

    return state;
}