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

ice3嵌套路由切换时前一个页面卸载时依旧会render的bug #6955

Open
tkgkn opened this issue Jul 25, 2024 · 1 comment
Open
Labels

Comments

@tkgkn
Copy link
Contributor

tkgkn commented Jul 25, 2024

Describe the bug

嵌套路由时,如/page/a -> /page/b切换时,会先执行a的render,再执行b的render。

Expected behavior

嵌套路由时,期望/page/a -> /page/b时,只执行b的render,a不应该执行。

Actual behavior

图1:初始加载/todo/t1路由
image
图2:点击图1中的to t2的按钮,调用history.push('/todo/t2'),执行了t1 run,卸载了t1不应该再执行t1了。这里有问题
image
图3:文件目录
image
图4:t1和t2两个嵌套路由的组件代码
image

Version of ice.js

ice3

Content of build.json or ice.config.mts

No response

Additional context

No response

@tkgkn tkgkn added the bug label Jul 25, 2024
@ClarkXia
Copy link
Collaborator

可以看下这个 issue 的说明 #6461

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

No branches or pull requests

2 participants