Sha256: 0b2a4ba2bc255deac5b7be98b82fc9a6a4a47eda2499224f96fa078abe2d8d0b
Contents?: true
Size: 404 Bytes
Versions: 102
Compression:
Stored size: 404 Bytes
Contents
import Immutable from 'seamless-immutable'; import { INSIGHTS_HITS_SUCCESS } from './InsightsTabConstants'; const initialState = Immutable({ hits: [], }); export default (state = initialState, action) => { const { payload: { hits } = {} } = action; switch (action.type) { case INSIGHTS_HITS_SUCCESS: return state.merge({ hits, }); default: return state; } };
Version data entries
102 entries across 102 versions & 1 rubygems