improve docs
This commit is contained in:
parent
d4642a9bba
commit
6332a805dc
7 changed files with 66 additions and 38 deletions
|
|
@ -114,4 +114,7 @@ In addition, note that template performance, both in Mithril templates as well a
|
|||
|
||||
## Usage of keys
|
||||
|
||||
If you need to sort lists, or delete items from them, or splice them in any way, you should [use the `key` attribute](mithril.md#dealing-with-sorting-and-deleting-in-lists) to maintain referential integrity between the data and the DOM.
|
||||
If you need to sort lists, or delete items from them, or splice them in any way, you should [use the `key` attribute](mithril.md#dealing-with-sorting-and-deleting-in-lists) to maintain referential integrity between the data and the DOM.
|
||||
|
||||
Not using keys still works in some cases, but might trigger more expensive code paths within the redrawing algorithm.
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue