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

切换路由时,如果路由上的 isFullPage 属性发生了变化,会导致该路由被渲染两次 #184

Open
4yan opened this issue Mar 8, 2024 · 2 comments
Assignees

Comments

@4yan
Copy link

4yan commented Mar 8, 2024

tdesign-react-starter 版本

0.3.1

重现链接

No response

重现步骤

切换路由时,如果路由上的 isFullPage 属性发生了变化,会导致该路由被渲染两次
路由已经渲染完成之后,才会执行到切换路由表上配置的 isFullPage
image
切换会导致外部 AppContainer 发生变化,从而内容重新渲染
image

期望结果

路由的 Content 部分,在切换时只被渲染一次

实际结果

路由的 Content 部分,在切换时只被渲染了两次,里面用于初始化的副作用,也渲染了两次

框架版本

React

浏览器版本

No response

系统版本

No response

Node版本

No response

补充说明

No response

Copy link

github-actions bot commented Mar 8, 2024

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

Copy link

github-actions bot commented Mar 8, 2024

♥️ 有劳 @xucz @uyarn 尽快确认问题。
确认有效后将下一步计划和可能需要的时间回复给 @4yan

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

3 participants