, .
During application development, it would be nice to quickly add a state fragment so that the application compiles ... by moving things. Here is the hack that I use to update the gearbox. The approach does not require the application to compile as long as the store is open, and, in any case, this is one of the motivations.
export default createReducer(initialState, {
HACK: state => ({
...state,
selected: []
}),
...
}
source
share