Some cool stuff in Vue 3

Watch in Vue 3

  • Watch is used to monitor the change of Property or Data (Similar to Computed)
  • To track an Object when a property changes we set the parameter deep: true
  • [Immediate] runs for the first time when declaring watch(…)

Difference between watch and computed

  • Computed always has to return, computed always depends on the value, when the value changes, computed is called

Thank for reading