Question · Vue.js course · Module 6: Components

The onUnmounted hook

What is onUnmounted used for?

Answer options

  • Component initialization
  • Updating reactive data
  • Rendering the template
  • Cleaning up resources (e.g. timers) after the component is removed

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