Skip to content

Svelte 5 reactive classes behave inconsistently #644

@SenneVanderAuwera

Description

@SenneVanderAuwera

When using a $state() property in a class, the library has some inconsistencies. It seems that while dragging the object is not correctly copied, only when dropped. This causes the element to not be rendered correctly in the container.

I have provided a REPL where you can see the weird behaviour. If the id property is changed to a $state() variable it breaks the functionality entirely.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions