25 lines
462 B
Handlebars
Raw Normal View History

2021-07-21 20:08:17 +02:00
/*
*
* {{name}} reducer
*
*/
2021-07-22 14:10:54 +02:00
2021-07-21 20:08:17 +02:00
import produce from 'immer';
import { DEFAULT_ACTION } from './constants';
export const initialState = {};
const {{camelCase name}}Reducer = (state = initialState, action) =>
// eslint-disable-next-line consistent-return
produce(state, draftState => {
switch (action.type) {
case DEFAULT_ACTION: {
break;
}
default:
return draftState;
}
});
export default {{camelCase name}}Reducer;