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(runtime): 新增 API:getCurrentInstance() #6700

Merged
merged 1 commit into from
Jun 16, 2020

Conversation

yuche
Copy link
Contributor

@yuche yuche commented Jun 16, 2020

取代直接访问 Current,这个 API 会让开发者在 class component 中倾向于把 Current 暂存起来,减少不可预料的问题。

详情请看文档:
#6699

@yuche yuche merged commit 457028c into next Jun 16, 2020
@yuche yuche deleted the feat/get-current-instance branch June 16, 2020 12:54
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.

2 participants