Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HMR 部分场景下失效 #5535

Open
wssgcg1213 opened this issue Nov 14, 2022 · 1 comment
Open

HMR 部分场景下失效 #5535

wssgcg1213 opened this issue Nov 14, 2022 · 1 comment
Assignees
Labels

Comments

@wssgcg1213
Copy link
Collaborator

wssgcg1213 commented Nov 14, 2022

This issue is transported from ice-lab/ice-next#103

页面组件除了 export default XXXComponent;,还有 export getInitialDataexport getPageConfig 时,HMR 会失效,直接重新加载了。

对于 页面组件只包含 export default XXXComponent;,HMR 是正常的。

@wssgcg1213
Copy link
Collaborator Author

add ice-lab/ice-next#330

如果路由组件中配置 pageConfig 则该路由组件的 HMR 将会失效,降级为 hot reload
原因是因为 pageConfig 内容将会在应用启动入口被引入。期望 pageConfig 能类似 dataLoader 的处理作为独立的资源引入

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants