docs icon indicating copy to clipboard operation
docs copied to clipboard

Missing search result for getCurrentInstance

Open Tangwenjie-cn opened this issue 1 year ago • 1 comments

Tangwenjie-cn avatar Sep 30 '24 02:09 Tangwenjie-cn

@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.

mahmudunnabikajal avatar Sep 30 '24 03:09 mahmudunnabikajal