Skip to content

[2.1.5+]Multiple root nodes from functional component render function not allowed now? #4472

@Uriziel01

Description

@Uriziel01

Vue.js version

2.1.5, 2.1.6

Reproduction Link

[2.1.4] https://jsfiddle.net/uriziel01/kx1yuu3a/ [working]
[2.1.5] https://jsfiddle.net/uriziel01/kx1yuu3a/3/ [broken]

Steps to reproduce

Return array of elements from render function in functional component.

What is Expected?

Multiple root nodes seems to be dissallowed in Vue2 everywhere but not here.
I think that the correct solution would be to throw appropriate error to console and avoid returning undefined. Or is that designed logic and this should be handled by the engine as it was in older versions? You decide.

What is actually happening?

undefined is rendered as a result and no correct error is thrown to the console.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions