Skip to content

Improve explanations of keyed each #1262

Open
@sacrosanctic

Description

@sacrosanctic

Describe the Problem

Users often are confused by why their {#each} doesn't work. And when they do discover keyed each, they struggle to understand why keyed each fixes their problem.

Proposed Solutions

Notes

  • It should be explicitly mentioned that an unkeyed each is the same as keying the index
  • Add animation/visual to better represent what is happening in the DOM
  • Describe the process as syncing data and DOM
  • Remove the need for a Child component as that splits the relevant code and can act as a distraction
  • Provide a side-by-side comparison
  • Either unify the examples or provide multiple examples that are more cohesive and comparable

Reference

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions