Skip to content

Reactivity degradation in 5.35.5 #16363

Open
Open
@gyzerok

Description

@gyzerok

Describe the bug

Here is the PR that causes the problem it seems: #16278

In our codebase we are using mutable deriveds for optimistic updates. Whenever there is a list to be updated we use SvelteSet or SvelteMap. In a certain cases we are calling update in onDestroy because we want to actually perform it whenever context menu is closing. Now in 5.35.5 it got broken.

Unfortunately we really needed another PR that got merged within 5.35.5, so now we are blocked from upgrading.

Reproduction

REPL

  1. Click on the button
  2. In 5.35.4 number 2 will disappear from the list
  3. In 5.35.5 it does not

The repro could be trimmed down further, I just wanted to avoid questions "why are you doing this". Hopefully it's a bit clearer this way.

Logs

System Info

no relevant

Severity

blocking an upgrade

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions