Skip to content

Warning when :for attribute is used, without a key attribute #22

@michielvandergeest

Description

@michielvandergeest

As I'm writing up documentation on the for-loop functionality I'm realising that it's very important (in most cases) to add a key attribute when using the :for attribute.

It would be nice if the VS code plugin can display a warning when the key attribute is omitted. It's not 100% required (for example when creating a static for-loop, with no changes ever).

Ideally it would also be nice to detect wether the index is used in the key attribute, and display a warning about it (i.e. the index is not a useful value to use in the key attribute)

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