Skip to content

Add beforeDeactivated hook #9454

Open
@danyadev

Description

@danyadev

What problem does this feature solve?

I use :key and keep-alive tag to display chats. And in order to maintain the position of the scroll when switching between chat rooms, I need to save the scrollTop when the hook is deactivated and put it on the element when the hook is activated. But the deactivated hook is already called when the element has been removed from the DOM, so I needed a new hook - beforeDeactivated.

Seriously, this hook is needed just like the others before* hooks.

What does the proposed API look like?

Here, I think, everything is clear. Simple hook.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions