Question · Vue.js course · Module 8: Slots & Dynamic Components

onActivated hook

When is the onActivated hook called?

Answer options

  • Only once, when the component is first mounted
  • When a component receives new props
  • When a component is destroyed
  • When a component cached by KeepAlive becomes visible again

You can check the correct answer by solving this task in the CodeWorlds game.