Skip to content

Probably false positive effect_update_depth_exceeded error when reading derived firstly at effect #16423

@TUTOR03

Description

@TUTOR03

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

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

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy