import { injectReducer } from '../../store/reducers'

export default (store) => ({
  path: 'zen',
  getComponent (nextState, cb) {
    require.ensure([], (require) => {
      const Zen = require('./containers/ZenContainer').default
      const reducer = require('./modules/zen').default
      injectReducer(store, { key: 'zen', reducer })
      cb(null, Zen)
    })
  }
})

@@ -91,16 +91,81 @@
  'zen',%0A
+  /*  Async getComponent is only invoked when route matches   */%0A
   getCom

add comments