Skip to content

Multiple registers in each block with bind group and no index #5174

@ignatiusmb

Description

@ignatiusmb

Describe the bug
Each loop register multiple values in bind:group, adding key expression doesn't help, but adding index strangely solves the problem.

To Reproduce
Buggy: https://svelte.dev/repl/6ee5960e75ac442bb0f8577f98941501?version=3.24.0
Fixed: https://svelte.dev/repl/5738295d14a6406a9f4a1a0b73f403d0?version=3.24.0

Fixed version works without the keys (key)

Expected behavior
Expected that key expression was the one to give each element unique id to bind the group

Information about your Svelte project:

  • Your browser and the version: Firefox Developer 79.0b9
  • Your operating system: Windows 10
  • Svelte version: 3.24.0
  • Uses Rollup

Severity
How severe an issue is this bug to you? Is this annoying, blocking some users, blocking an upgrade or blocking your usage of Svelte entirely?

Annoying, time wasting

Metadata

Metadata

Assignees

No one assigned

    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