Vue · Senior · Question 2 of 75

Why is reactive(obj) === obj false, and why does it matter?

Explanation

Always work with the proxy. Calling reactive on the same object returns the same proxy, and toRaw(proxy) gives back the original when you need untracked access.

Further reading

Problem with a question

Vue · Senior · question 2

Test yourself

Take the Vue · Senior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz