Skip to content

Svelte5: reactive Set constructor not working correctly #11222

@FoHoOV

Description

@FoHoOV

Describe the bug

This reproduction sums it up basically. Calling the Set constructor from an array doesn't work. If it helps, it does work with production builds.

Reproduction

1- goto this REPL.
2- see the logs

Logs

"init"
"dataAsNativeSetFromState"
Set(4) { "1" ,"2" ,"3" ,"4" }
"init"
"dataAsNativeSetFromRaw"
Set(4) { "1" ,"2" ,"3" ,"4" }
"init"
"dataAsReactiveSetFromState"
Set(0) { }
"init"
"dataAsReactiveSetFromRaw"
Set(0) { }

System Info

svelte REPL on "Svelte v5.0.0-next.107"

Severity

blocking an upgrade

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions