MCPcopy Create free account
hub / github.com/kenberkeley/react-demo / getComponent

Function getComponent

src/routes/msg.js:14–21  ·  view source on GitHub ↗
(nextState, cb)

Source from the content-addressed store, hash-verified

12
13 /* 布局基页 */
14 getComponent (nextState, cb) {
15 require.ensure([], (require) => {
16 // 立即注入 Reducer
17 injectReducer('msg', require('REDUCER/msg/').default)
18
19 cb(null, require('VIEW/msg').default)
20 }, 'msgView')
21 },
22
23 indexRoute: { // 对应 /msg
24 getComponent (nextState, cb) {

Callers

nothing calls this directly

Calls 1

injectReducerFunction · 0.85

Tested by

no test coverage detected