Skip to content

[LiveComponent] Sharing templates between child components broken since 2.14 #1470

Closed
@tijnema

Description

@tijnema

Since live component 2.14 we can no longer use child components inside a parent component with the same template. The child components will generate the same live id.

I've created a reproducer here: https://github.com/tijnema/livebug
In the current state it shows how it should work (live components version 2.13), pressing the button will render child A or B.
Upgrading live components to 2.14 breaks it, and will either render the wrong component, or render nothing at all.

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