-
-
Notifications
You must be signed in to change notification settings - Fork 8.9k
Closed
Labels
✨ feature requestNew feature or requestNew feature or request
Description
What problem does this feature solve?
-
onActivated and onDeactivated are the only hooks that have no option with the Before prefix.
-
I need onBeforeDeactivate to maintain the scroll position when closing or switching between components. In a little more detail I described this in another issue.
What does the proposed API look like?
onBeforeActivate(() => console.log('call #1'));
onActivated(() => console.log('call #2'));
onBeforeDeactivate(() => console.log('call #3'));
onDeactivated(() => console.log('call #4'));
eolme, wuyuweixin and xialvjun
Metadata
Metadata
Assignees
Labels
✨ feature requestNew feature or requestNew feature or request