Skip to content

Svelte 5: Deeply nested state doesn't re-render when looping #10685

Closed
@alex-way

Description

@alex-way

Describe the bug

It seems that when looping through a deeply nested object, svelte doesn't re-render when looping through object.

No errors are thrown in the logs which makes me think this may be a bug.

Reproduction

Repl

Click the update button and observe that the JSON.stringify correctly shows the update, but the each block isn't updated with the new value.

Note: I'm using the $inspect to force the compiler to svelte 5 mode. Without it, it works as expected.

Logs

No response

System Info

Browser: Edge

Severity

blocking all usage of svelte

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