RallyCodingWeekly icon indicating copy to clipboard operation
RallyCodingWeekly copied to clipboard

001: unused switch statement

Open Altiano opened this issue 8 years ago • 1 comments

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..

Altiano avatar Aug 21 '16 08:08 Altiano

Yes am also having the same question!!! Then we don't need to persist the state in redux know?

sivadass avatar Aug 28 '17 10:08 sivadass