Skip to content

5.19.2 (and 5.19.3) fixed untrack error, but reactivity graph is broken somewhereΒ #15111

@gyzerok

Description

@gyzerok

Describe the bug

After previous issue got fixed I've tried to update us again. The app is now rendering and there are no untrack related errors, however it looks like reactivity graph isn't properly connecting.

On the screenshots you can see how I both inspect one of our reactive values and log it using interval. When draft.attaches.isEmpty is changed interval starts outputting different value, however $inspect is never running again. And the only difference made to the repo is svelte dependency updated. With 5.19.0 everything works just fine.

Image Image

One more thing is that even in our codebase it's not 100% reproduceable in every place where draft.attaches.isEmpty is used. Somewhere it keeps working just fine and somewhere it breaks.

I think one last thing that is important - we are heavily using classes. So everything - root store, draft, attaches are all classes with $state runes inside.

Reproduction

For now I've spent some hours unsuccessfully hunting for the repro. So decided to open an issue anyway at least with these screenshots. Will keep hunting for the repro, but any help and guesses in the meantime are highly appreciated.

Logs

System Info

Svelte 5.19.2 or 5.19.3

Severity

blocking an upgrade

Metadata

Metadata

Assignees

Labels

awaiting submitterneeds a reproduction, or clarification

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions