Skip to content

Wording choice in Svelte tutorial #2179

Description

@blueboy90780

In https://svelte.dev/tutorial/svelte/keyed-each-blocks , the tutorial says "By default, updating the value of an each block will add or remove DOM nodes at the end of the block if the size changes, and update the remaining DOM. That might not be what you want."

I think it should be clarified that the "value of an each block" is referring to the iterator the each block is running through. It is a very small change but makes a huge difference in how I understood keyed each block. As a reader, it was not intuitive to me what "value" means, I originally thought it meant a dependent data, kind of like how most runes are executed based on dependent data. I had to find this information myself through clarifying on AI, it took a lot more time to understand this one sub-chapter than necessary, adding this small clarification will help readers immensely.

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions