ice icon indicating copy to clipboard operation
ice copied to clipboard

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

Open tkgkn opened this issue 7 months ago • 1 comments

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 avatar Jul 25 '24 02:07 tkgkn