import {
  combineReducers, 
  applyMiddleware, 
  createStore
} from 'redux'
import thunk from 'redux-thunk'
import auth from '../modules/Auth/reducer'
import households from '../modules/Households/reducer'
import meals from '../modules/Meals/reducer'
import { reducer as form } from 'redux-form'

const rootReducer= combineReducers({
  auth,
  form,
  households,
  meals
})

const middleware = [thunk]

export default createStore(rootReducer, window.__REDUX_DEVTOOLS_EXTENSION__ && window.__REDUX_DEVTOOLS_EXTENSION__(), applyMiddleware(...middleware))



import {
  combineReducers,
  applyMiddleware,
  createStore
} from 'redux'
import thunk from 'redux-thunk'
import auth from '../modules/Auth/reducer'
import households from '../modules/Households/reducer'
import members from '../modules/Members/reducer'
import meals from '../modules/Meals/reducer'
import { reducer as form } from 'redux-form'

const rootReducer = combineReducers({
  auth,
  form,
  households,
  meals,
  members
})

const middleware = [thunk]

export default createStore(rootReducer, window.__REDUX_DEVTOOLS_EXTENSION__ && window.__REDUX_DEVTOOLS_EXTENSION__(), applyMiddleware(...middleware))



Update redux store to include members
Update redux store to include members
