Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update adds more direct recommendation for authoring list items with … #198

Merged
merged 2 commits into from
Feb 29, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion app/docs/md/conventions/components.md
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ Once added the `MorphdomMixin` will handle updating the DOM whenever an `observe

### Lists

When working with lists of data in the DOM it is highly advisable to add a unique attribute to the list item like an `id` or `key`. This will assist `morphdom` in determining what items have changed in the list.
When working with lists of data in the DOM it is highly advisable to add a unique `id` attribute to the list item. [The `state` object passed to an element's render function has a unique `instanceID` property available for this purpose]('/docs/elements/state/instance-id'). This will assist `morphdom` in determining what items have changed in the list.
kristoferjoseph marked this conversation as resolved.
Show resolved Hide resolved

</doc-callout>

Expand Down
Loading