-
-
Notifications
You must be signed in to change notification settings - Fork 4.6k
Open
Description
Describe the bug
In reproduce I am rendering 1000+ elements in each block. Each element has state that never changes and derived dependent on this state. Dervied firstly read inside $effect. Then there is more than 1000 elemtns the effect_update_depth_exceeded error is fired. But in fact there should not be any loops in effects
Reproduction
The reproduction is presented here https://svelte.dev/playground/d9c15933109c478181c3a00854397dec?version=5.36.6
Firstly test it with 1000 elements by clicking the show button - there will be no error
Increase number of elemetns to 1001 and do the same again - the error will appear
Uncomment reading canPlay derived in Component.svelte to calculate it before effect - there will be no error
Logs
System Info
System:
OS: macOS 15.5
CPU: (12) arm64 Apple M4 Pro
Memory: 65.36 MB / 24.00 GB
Shell: 5.9 - /bin/zsh
Binaries:
Node: 22.17.0 - ~/.nvm/versions/node/v22.17.0/bin/node
Yarn: 1.22.22 - ~/.nvm/versions/node/v22.17.0/bin/yarn
npm: 10.9.2 - ~/.nvm/versions/node/v22.17.0/bin/npm
pnpm: 10.12.3 - /opt/homebrew/bin/pnpm
Browsers:
Chrome: 138.0.7204.158
Safari: 18.5
npmPackages:
svelte: ^5.36.6 => 5.36.6
Severity
blocking all usage of svelte
davidnewhall and sgoudham
Metadata
Metadata
Assignees
Labels
No labels