Skip to content

When switching between two of the same components with slot using v-else, I get a render error #9534

Closed
@cypressious

Description

@cypressious

Version

2.6.6

Reproduction link

https://codesandbox.io/s/4l3wn6r3nx

Steps to reproduce

Check the checkbox to trigger the error

What is expected?

The value "2" should be rendered

What is actually happening?

[Vue warn]: Error in render: "TypeError: item.a is undefined"

found in

---> <HelloWorld> at /src/components/HelloWorld.vue
       <App> at /src/App.vue
         <Root>

and "1" is still being rendered.


I have two of the same components next to each other and switch between them using v-else.

This used to work in earlier versions of Vue but in 2.6.6 I get this unexpected render error. It appears as if component 1 is being rendered with the properties of component 2.

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