StephenGrider / RallyCodingWeekly

Code Examples for Weekly Javascript Videos - http://www.RallyCoding.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

001: unused switch statement

Altiano opened this issue · 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..

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