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

feat(getCurrentInstance): Aligning with vue3 #520

Merged
merged 6 commits into from
Dec 19, 2020

Conversation

pikax
Copy link
Member

@pikax pikax commented Sep 15, 2020

fix #499

BREAKING CHANGE: The internal vm can be accessed with getCurrentInstance().proxy

const vm = getCurrentInstance()

// becomes

const vm = getCurrentInstance().proxy

BREAKING CHANGE: The internal vm can be accessed with `getCurrentInstance().proxy`

```js
const vm = getCurrentInstance()

// becomes

const vm = getCurrentInstance().proxy
```
@antfu
Copy link
Member

antfu commented Sep 15, 2020

I was just planning to file an RFC on this... Great, thanks 👍

src/runtimeContext.ts Outdated Show resolved Hide resolved
src/runtimeContext.ts Outdated Show resolved Hide resolved
@antfu
Copy link
Member

antfu commented Oct 27, 2020

@knightly-bot build this

@knightly-bot
Copy link

Nightly Build

🌒 Knightly build enabled, release every night at 00:00 UTC (skip if no change)

📦 npm package

@antfu antfu marked this pull request as ready for review December 16, 2020 08:30
@antfu
Copy link
Member

antfu commented Dec 16, 2020

@pikax I think I am done, could you have a look? Thanks

@pikax
Copy link
Member Author

pikax commented Dec 19, 2020

LGTM ✔️

@antfu antfu merged commit 1495a46 into vuejs:master Dec 19, 2020
@antfu
Copy link
Member

antfu commented Dec 19, 2020

Thanks! Heading for the release.

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

Successfully merging this pull request may close these issues.

Alias vm.$root with this.root to match with Vue 3
3 participants