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

add provide/inject on functional context #5204

Merged
merged 3 commits into from Apr 5, 2017
Merged

Conversation

Kingwl
Copy link
Member

@Kingwl Kingwl commented Mar 16, 2017

const vnode = Ctor.options.render.call(null, h, {
props,
data,
parent: context,
children,
inject,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think injections is better as a key since it's a noun

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

extend(vm, result)
}

export function resolveInject (inject: any, vm: Component) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing return type annotation ?Object

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

@yyx990803 yyx990803 merged commit 2701fa1 into vuejs:dev Apr 5, 2017
@Kingwl Kingwl deleted the dev-provider branch June 7, 2017 00:55
awamwang pushed a commit to awamwang/vue that referenced this pull request Jun 15, 2017
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.

None yet

2 participants