You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When trying to pass a Set to the bind:group directive, I get the following error: value.includes is not a function in App.svelte. Indeed, the correct method to check membership of a Set is has() rather than includes().
Using a Set in a bind:group seems like a natural use case and I didn't catch anything about this limitation in the docs, so I assume it is not intentional. I suspect it should be a relatively easy fix.
Potentially related mention of this(?) issue from 2020: #5721 (comment)
Describe the bug
When trying to pass a Set to the
bind:group
directive, I get the following error:value.includes is not a function in App.svelte
. Indeed, the correct method to check membership of a Set ishas()
rather thanincludes()
.Using a Set in a
bind:group
seems like a natural use case and I didn't catch anything about this limitation in the docs, so I assume it is not intentional. I suspect it should be a relatively easy fix.Potentially related mention of this(?) issue from 2020: #5721 (comment)
Reproduction
https://svelte.dev/playground/11b978c08eb34f06a499b7dc87e98672?version=5.25.9
I can't verify if it used to work in Svelte 4 because Svelte 4 playground doesn't work (
Error compiling component: Unrecognized option 'runes'
).Logs
System Info
System: OS: macOS 15.3.2 CPU: (8) arm64 Apple M1 Memory: 108.41 MB / 8.00 GB Shell: 5.9 - /bin/zsh Binaries: Node: 23.11.0 - /opt/homebrew/bin/node Yarn: 1.22.22 - /opt/homebrew/bin/yarn npm: 10.9.2 - /opt/homebrew/bin/npm pnpm: 10.6.5 - /opt/homebrew/bin/pnpm Browsers: Chrome: 135.0.7049.42 Safari: 18.3.1 npmPackages: svelte: ^5.0.0 => 5.1.2
Severity
annoyance
The text was updated successfully, but these errors were encountered: