Skip to content

VNode.componentInstance is undefined when rendered by a functional component #8350

Open
@KaelWD

Description

@KaelWD

Version

2.5.17-beta.0
2.5.16

Reproduction link

https://codepen.io/anon/pen/rKwWXq?editors=1010

Steps to reproduce

Open the console

What is expected?

An instance of MyComponent should be logged

What is actually happening?

undefined is logged


This worked in 2.5.15
It also works if you change RootComponent to be non-functional:

const content = h(MyComponent, {}, this.slots.default)

I'm guessing this was caused by 62a922e, cloneVNode doesn't include that property.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions