You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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.
The text was updated successfully, but these errors were encountered: