onActivated not work well with async component
Version
^3.2.31
Reproduction link
Steps to reproduce
- Open console
- Home component logs that it was activated and mounted
- Change tab to Post or Archive
- Only mounted function is run
- Change between tabs, both activated and mounted function are running now
What is expected?
The docs say:
onActivated is also called on mount, and onDeactivated on unmount.
What is actually happening?
onActivated
is not called on the first time component is mounted. The function works well with normal/sync component