Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing search result for getCurrentInstance #3046

Open
Tangwenjie-cn opened this issue Sep 30, 2024 · 1 comment
Open

Missing search result for getCurrentInstance #3046

Tangwenjie-cn opened this issue Sep 30, 2024 · 1 comment

Comments

@Tangwenjie-cn
Copy link

No description provided.

@mahmudunnabikajal
Copy link
Contributor

@Tangwenjie-cn

getCurrentInstance() was removed from the Vue 3 docs because it's an internal API:

Because the instance is an internal instance that exposes non-public APIs. Anything you use from that instance can technically break between any release types, since they are not subject to semver constraints.

getCurrentInstance() was originally documented in 4-Oct-2020, but that was later removed in 31-Aug-2021 in a major refactoring of the Composition API docs by the creator of Vue (Evan You). Despite its removal from the docs, getCurrentInstance() still:

Given that it's an undocumented internal API, use it with caution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants