import AccountViewContainer from './views/AccountViewContainer'
import { fetchRooms } from 'store/modules/rooms'
import { fetchPrefs } from 'store/modules/prefs'

// route definition
export default function (store) {
  return {
    path: 'account',
    getComponent (nextState, cb) {
      store.dispatch(fetchRooms())
      store.dispatch(fetchPrefs())

      cb(null, AccountViewContainer)
    }
  }
}

import AccountViewContainer from './views/AccountViewContainer'

// route definition
export default function (store) {
  return {
    path: 'account',
    getComponent (nextState, cb) {
      cb(null, AccountViewContainer)
    }
  }
}

Remove fetches on route load (components each handle this now)
Remove fetches on route load (components each handle this now)
