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
The getCurrentInstance is not recommended for use. The fundamental issue is how to obtain the runWithContext again within the asynchronous function inside the runWithContext function?
Vue version
3.5
Link to minimal reproduction
https://play.vuejs.org/#eNp9UcFuwjAM/ZUoF4qECtN2YhRpQxzYYZs2pF1yqYqBsNaJEochof77nDBGD4hDlPj5OX7PPsona/N9ADmWE185bUl4oGCnCnVjjSNxFBugWXAOkBboqcQKRCvWzjSix5U9hZVhXJTWiuIKOesr5D+XugETKMv6opiKo0IRK3I+M4MEB4rP3AX80rT9g7pkptfgKLvWQBRFEX/rP0ZmG692IO5Go1F8KpwMT97YFQcEja1LAo4mw04gB5I8e1nrTb7zBnkmqbOSlWms5u5vljR7VXJ81qRkWdfm5yVh5AIMzni1her7Cr7zh4gp+e7Ag9uDkv85Kh3bO6Xnn688gU6yMatQM/tG8gO8qUPUeKI9B1yx7A4vqV2kzWrcLP38QID+bCoKTRNMfCV5vbMb1i9y7/OHVMdzl+0v+wHHjA==
Steps to reproduce
The above code always alerts false, ideally it should output true.
What is expected?
The above code always alerts false, ideally it should output true.
What is actually happening?
getCurrentInstance should be running in an app context, like inject
runWithContext provides context to the function,In my scene, I cannot automatically pass context
openDatasetSelect internally uses the render method to render the component into the body, and the component internally uses getCurrentInstance
System Info
Any additional comments?
No response
The text was updated successfully, but these errors were encountered: