From b27bf8deab0300d964b4ee7c04b1b2dead7c5357 Mon Sep 17 00:00:00 2001 From: afc163 Date: Fri, 29 Dec 2017 13:55:33 +0800 Subject: [PATCH] Fix unneccessary rerender of parent page, close #525 --- src/common/router.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/common/router.js b/src/common/router.js index 343d98ad..b5179bd5 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)); }); }, -- GitLab