-
-
Notifications
You must be signed in to change notification settings - Fork 4.6k
Closed as not planned
Description
Describe the bug
The .size property of a reactive Set is not reliable, does not update when items are deleted like a native Set.
Reproduction
If you comment out the reactive Set import, you see the console log counting down on each iteration. With the reactive Set enabled, the size property stays the same throughout and after the loop. The size is correct again after doing an .add()
Logs
No response
System Info
System:
OS: macOS 14.5
CPU: (10) arm64 Apple M1 Pro
Memory: 223.81 MB / 32.00 GB
Shell: 5.9 - /bin/zsh
Binaries:
Node: 20.14.0 - ~/.nvm/versions/node/v20.14.0/bin/node
npm: 10.7.0 - ~/.nvm/versions/node/v20.14.0/bin/npm
pnpm: 8.9.2 - /opt/homebrew/bin/pnpm
Browsers:
Chrome: 125.0.6422.142
Safari: 17.5
npmPackages:
svelte: ^5.0.0-next.151 => 5.0.0-next.151
Severity
blocking all usage of svelte
Metadata
Metadata
Assignees
Labels
No labels