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

【?Bug?】脚手架生成的子应用,会多次触发 mount unmount 生命周期 #682

Open
chudongvip opened this issue May 6, 2023 · 0 comments

Comments

@chudongvip
Copy link

Do you want to request a feature or report a bug?

What is the current behavior?
通过脚手架生成的子应用,在路由发生变化之后会多次触发 mountunmount 生命周期

**If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem.

start 方法中的 onRouteChange 会触发多次

离开子应用后会触发 2次 mount 和 1次 unmout 回调

What is the expected behavior?

start 方法中的 onRouteChange 会触发1次
离开子应用后会触发 1 次 mount 和 1 次 unmout 回调

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

1 participant