RallyCodingWeekly
RallyCodingWeekly copied to clipboard
001: unused switch statement
file: src/reducers/posts_reducer.js
switch (action.type) {
case FETCH_POSTS:
return action.payload;
// case CREATE_POST:
// return { ...state, ...action.payload };
// case DELETE_POST:
// return _.omit(state, action.payload);
}
even if i comment this two cases the 001 - Redux & Firebase app will still work..
Yes am also having the same question!!! Then we don't need to persist the state in redux know?