Question · Vue.js course · Module 3: Reactivity

Destructuring and toRefs

What happens when you destructure a reactive object WITHOUT using toRefs()?

Answer options

  • Nothing - it works normally
  • The destructured variables are regular values and lose reactivity
  • Vue throws an error
  • Only the first property is destructured

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