Skip to content

[composition-api] getCurrentInstance documentation #456

Closed
@pikax

Description

@pikax

Current render instance

Notes

  • This is advanced api, in v3 allows us to get access to internal instance of the component, main use (to me at least) is to access root and parent from a composable without passing the ctx.root.
  • getCurrentInstance is only valid during the setup and lifecycle events

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions