I'm working on react/redux for some months, and I create this generic method which is a setState like but for redux state. It work well, but it when I try to use redux dev tools, it crashed.
Is there some obvious reason for that ?
I don't have any error message, just : redux devtool has crashed
case AFFECTVALUE:
console.log('--> AFFECTVALUE action :', action.name, action.value);
var newState = { ...state };
newState[action.name] = action.value
return {
...newState
}