Skip to content

Svelte 5: destructured $derived.by factory calls the factory at any change #11015

@7nik

Description

@7nik

Describe the bug

Destructured $derived.by with a passed in factory compiles incorrectly.

Reproduction

REPL
Check the logs.

Logs

No response

System Info

Svelte v5.0.0-next.90

Severity

annoyance

Metadata

Metadata

Assignees

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