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

页面js重绘 #1

Open
songguangyu opened this issue Mar 19, 2018 · 4 comments
Open

页面js重绘 #1

songguangyu opened this issue Mar 19, 2018 · 4 comments

Comments

@songguangyu
Copy link

你好,我最近在做ssr的时候 发现一个问题,在页面js 加载后 会导致页面重绘,我在客户端绘制时使用了ReactDOM.hydrate 请问有遇到这种情况吗?

@songguangyu
Copy link
Author

不知道是什么问题导致页面有明显的闪动

@songguangyu
Copy link
Author

应该是webpack 打的chunk 导致的

@tzuser
Copy link
Owner

tzuser commented Mar 19, 2018

@songguangyu 你的build是否是生产环境 NODE_ENV=production?

@tzuser
Copy link
Owner

tzuser commented Mar 19, 2018

确认打包和服务端渲染,环境必须一致。

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

No branches or pull requests

2 participants