Skip to content

路由复用策略造成onDestroy失效 #15

Description

@zxyGo

在使用路由复用策略时,删除快照,onDestroy并不会被触发,如果我在删除组件中订阅了事件,想在onDestroy时,取消订阅就做不到了,另外我想在onDestroy做一些清除,以防内存泄漏,也就做不到了,有什么好的方案吗?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

questionFurther information is requested

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions