diff --git a/src/common/router.js b/src/common/router.js index 343d98ad31e56ceff01d087125cd95af150d1bae..b5179bd568b590f53012addf7c9f08e31f35e0dc 100644 --- a/src/common/router.js +++ b/src/common/router.js @@ -10,10 +10,11 @@ const dynamicWrapper = (app, models, component) => dynamic({ // add routerData prop component: () => { const p = component(); + const routerData = getRouterData(app); return new Promise((resolve, reject) => { p.then((raw) => { const Comp = raw.default || raw; - resolve(props => ); + resolve(props => ); }).catch(err => reject(err)); }); },