You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
The screen shot shows the return value of getCurrentScope, it may be the effect scope of current component?(App.vue component in your offered codebase), by the way, your new vue instance(vm) have not be mounted into the DOM(.$mount() haven't offer position reference to mount).
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...
Version
2.7.16-beta.2
Reproduction link
github.com
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
The text was updated successfully, but these errors were encountered: