Skip to content

Assignments inside event handler blocks inside loops don't trigger reactivity #3245

@spiffytech

Description

@spiffytech

https://svelte.dev/repl/263f78428b7e4bfd8151ddaaeb6f8bd1?version=3.6.7

If I make an assignment directly to an object property inside an event handler block inside a loop, the reactivity system doesn't update the page. If I assign to items[i].foo, reactivity does work.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions