The 'activated' Lifecycle Hook

In this example for the 'activated' hook we check if the component is cached properly with <KeepAlive>.

If the component is cached properly with <KeepAlive> we expect the 'mounted' hook to run once the first time the component is included (must be added to the DOM the first time), and we expect the 'activated' hook to run every time the component is included (also the first time).