Not reactive variable was updated
Vue version
3.2.45
Link to minimal reproduction
Steps to reproduce
npm init vue@latest
npm install
npm run dev
What is expected?
timeStr is fixed at the initial value, only timeStrRef is updated once every second.
What is actually happening?
timeStr not defined by ref() is also updated.
System Info
No response
Any additional comments?
When I ran the sample code posted in the book, the behavior did not match.
The version at the book was 3.2.37 and my environment was latest (3.3.4). After looking at the versions where the behavior changed, I found that the behavior was correct until 3.2.44, and that the change in 3.2.45 was the problem.
@Shyam-Chen I also understand that the proposed fix will result in the desired behavior. What I would like to confirm is whether the change to make non-ref() variables behave reactively was intentional, or whether this was caused by some side effect.