client/reducers/dashboardShoppingLists.js
//This reducer places all shopping lists for the logged in user into the redux store
This reducer places all shopping lists for the logged in user into the redux store
This reducer places all shopping lists for the logged in user into the redux store
function dashboardShoppingLists (state = [], action) {
  switch (action.type) {
    case 'RECIEVE_SHOPPINGLISTS':
      return [...action.shoppinglists]
    case 'DELETE_SHOPPINGLIST_BY_ID': 
      return [...state].filter(shoppinglist => shoppinglist.id != action.id)  
    default:
      return state
  }
}
function dashboardShoppingLists ( state = [ ] , action ) { switch ( action . type ) { case 'RECIEVE_SHOPPINGLISTS' : return [ ... action . shoppinglists ] case 'DELETE_SHOPPINGLIST_BY_ID' : return [ ... state ] . filter ( shoppinglist => shoppinglist . id != action . id ) default : return state } }
This reducer places all shopping lists for the logged in user into the redux store
This reducer places all shopping lists for the logged in user into the redux store
//NOTE : note sure this case is required  