Skip to content

[plugin]How can a plugin know app mount/unmount ? #4516

Closed
@agileago

Description

@agileago

What problem does this feature solve?

I want to clear some effect when app unmount. but I can't find the app api to do this. now i only hack rootProps to add onVnodeBeforeUnmount prop to achieve it. but i find vue2 has event dispatch

https://github.com/vuejs/vue-router/blob/dev/src/index.js#L98

What does the proposed API look like?

app maybe should expose some function to achieve it

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions