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

layout组件嵌套 刷新会导致页面闪屏 #44518

Closed
dr-forget opened this issue Aug 29, 2023 · 5 comments · Fixed by #45361
Closed

layout组件嵌套 刷新会导致页面闪屏 #44518

dr-forget opened this issue Aug 29, 2023 · 5 comments · Fixed by #45361
Labels
🐛 Bug Ant Design Team had proved that this is a bug. Inactive unconfirmed

Comments

@dr-forget
Copy link

Reproduction link

https://github.com/dr-forget/react-antd-bug.git

Steps to reproduce

npm run dev 运行项目 然后刷新浏览器即可 即可复现闪屏

What is expected?

恢复正常 不闪屏 样式不错乱

What is actually happening?

样式错乱 刷新会造成闪屏的效果

Environment Info
antd 5.8.5
React 18.2.0
System macos13.4.1
Browser chrome 116.0.5845.110
@MadCcc
Copy link
Member

MadCcc commented Aug 30, 2023

image
确实有一帧布局乱了

@MadCcc MadCcc added the 🐛 Bug Ant Design Team had proved that this is a bug. label Aug 30, 2023
@afc163
Copy link
Member

afc163 commented Aug 30, 2023

需要 hasSider 吧?

@afc163
Copy link
Member

afc163 commented Aug 30, 2023

#37367
#42487
#42576

@dr-forget
Copy link
Author

image
文档上标注服务端渲染才使用 一般不用指定 所以就没指定 加上hasSider 的确解决了问题

@poyiding
Copy link
Contributor

poyiding commented Sep 5, 2023

需要 hasSider 吧?

按文档说明,一般用户不会加上hasSider,这个是不是应该加默认更好?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 Bug Ant Design Team had proved that this is a bug. Inactive unconfirmed
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants