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组件出现闪烁问题 #2088

Closed
SKcong opened this issue Mar 25, 2023 · 3 comments
Closed

layout组件出现闪烁问题 #2088

SKcong opened this issue Mar 25, 2023 · 3 comments
Labels
example Something about example improvement to be published fixed, not be published

Comments

@SKcong
Copy link

SKcong commented Mar 25, 2023

这个功能解决了什么问题

image

useEffect是在组件render后才执行的,Layout组件在useEffect中去修改样式,会导致闪一下的问题

你建议的方案是什么

建议修改为useLayoutEffect

@github-actions
Copy link
Contributor

👋 @SKcong,感谢给 TDesign 提出了 issue。
请根据 issue 模版确保背景信息的完善,我们将调查并尽快回复你。

@HaixingOoO HaixingOoO added improvement example Something about example labels Oct 10, 2023
@HaixingOoO
Copy link
Collaborator

@SKcong 您好,能否提供個復現的demo,我好排查!

HaixingOoO added a commit to HaixingOoO/tdesign-react that referenced this issue Mar 30, 2024
@HaixingOoO HaixingOoO reopened this Apr 1, 2024
@HaixingOoO HaixingOoO added the to be published fixed, not be published label Apr 1, 2024
@uyarn
Copy link
Collaborator

uyarn commented Apr 11, 2024

fixed 1.6.0

@uyarn uyarn closed this as completed Apr 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
example Something about example improvement to be published fixed, not be published
Projects
None yet
Development

No branches or pull requests

3 participants