I have this initialState in my Redux store
const initialState = { isFetching : false, active : {} }
Where active is an object.
Now I have an action that should append or add a property to active's data property
like so:
[DASHBOARD_TEMPLATE_DATA_RECEIVE]: (state, action) => { retu Object.assign({}, state, { isFetching : false, active : Object.assign({}, active, {data[action.key]: action.data}) }) }
As you can see data[action.key] is not permitted, how do I do it?
