mirror of https://github.com/vuejs/core.git
fix(runtime-core): always pass context arg to functional components
This commit is contained in:
parent
ba391f5fdf
commit
37836c5796
|
@ -110,8 +110,7 @@ export function renderComponentRoot(
|
||||||
markAttrsAccessed()
|
markAttrsAccessed()
|
||||||
}
|
}
|
||||||
result = normalizeVNode(
|
result = normalizeVNode(
|
||||||
render.length > 1
|
render(
|
||||||
? render(
|
|
||||||
__DEV__ ? shallowReadonly(props) : props,
|
__DEV__ ? shallowReadonly(props) : props,
|
||||||
__DEV__
|
__DEV__
|
||||||
? {
|
? {
|
||||||
|
@ -123,10 +122,6 @@ export function renderComponentRoot(
|
||||||
emit,
|
emit,
|
||||||
}
|
}
|
||||||
: { attrs, slots, emit },
|
: { attrs, slots, emit },
|
||||||
)
|
|
||||||
: render(
|
|
||||||
__DEV__ ? shallowReadonly(props) : props,
|
|
||||||
null as any /* we know it doesn't need it */,
|
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
fallthroughAttrs = Component.props
|
fallthroughAttrs = Component.props
|
||||||
|
|
Loading…
Reference in New Issue