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

通过列表切换实现动态页面渲染的能力的问题 #3019

Open
1490113799 opened this issue May 10, 2024 · 1 comment
Open

通过列表切换实现动态页面渲染的能力的问题 #3019

1490113799 opened this issue May 10, 2024 · 1 comment

Comments

@1490113799
Copy link

想实现点击左侧树列表,右侧预览页动态渲染,现在点击左侧树引起state改变,按理来说会重新渲染DOM,但是页面没有切换渲染,参见下图
image
预测是预览初始化方法使用async的原因,请问应该如何解决这个问题

@AndyJinSS
Copy link
Contributor

这个跟初始化方法没有关系,你得看下是不是hook使用时缺少了对于选中页面变化的依赖

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