$forceUpdate causes getCurrentScope to get an incorrect value
1593292349 opened this issue · comments
Version
2.7.16-beta.2
Reproduction link
Steps to reproduce
1.npm install
2.npm run start
3.Execute the "getCurrentScope "method on the console, Get the correct value
4.Click the render button
5.Execute the "getCurrentScope "method on the console, Get the wrong value
What is expected?
The getCurrentScope method always returns undefined
What is actually happening?
The getCurrentScope method returns not undefined after calling the $forceUpdate method
I found some new details,
when I place console.log(getCurrentScope()); at #1, the result including effects property, whose value is an array, have a item whose $el property is <div id='app'....> dom node, and when palced console.log(getCurrentScope()); at #2, in the same place, whose $el property is div node in vm component...