-
-
Notifications
You must be signed in to change notification settings - Fork 33.7k
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
Conversation
src/core/vdom/create-component.js
Outdated
const vnode = Ctor.options.render.call(null, h, { | ||
props, | ||
data, | ||
parent: context, | ||
children, | ||
inject, |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
src/core/instance/inject.js
Outdated
extend(vm, result) | ||
} | ||
|
||
export function resolveInject (inject: any, vm: Component) { |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
# Conflicts: # src/core/instance/inject.js
#5194