client/reducers/dashboardShoppingListById.js
//This reducer places a shopping list (identified by its id) into the redux store
This reducer places a shopping list (identified by its id) into the redux store
This reducer places a shopping list ( identified by its id ) into the redux store
function dashboardShoppingListById (state = [], action) {
    switch (action.type) {
      case 'RECIEVE_SHOPPINGLIST_BY_ID':
        return [...action.shoppinglist] 
      default:
        return state
    }
  }
function dashboardShoppingListById ( state = [ ] , action ) { switch ( action . type ) { case 'RECIEVE_SHOPPINGLIST_BY_ID' : return [ ... action . shoppinglist ] default : return state } }
This reducer places a shopping list (identified by its id) into the redux store
This reducer places a shopping list ( identified by its id ) into the redux store