Question · Vue.js course · Module 4: Computed & Watch

watchEffect immediate

When does watchEffect execute for the first time?

Answer options

  • Only when a dependency changes for the first time
  • After the component is mounted
  • Only when we add the immediate: true option
  • Immediately upon initialization (always)

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