Skip to content

Commit feb467b

Browse files
authored
remove unnecessary space (#1253)
1 parent 20e3ae6 commit feb467b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/api/special-attributes.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
## key
44

5-
- **Expects:** `number | string | symbol `
5+
- **Expects:** `number | string | symbol`
66

77
The `key` special attribute is primarily used as a hint for Vue's virtual DOM algorithm to identify VNodes when diffing the new list of nodes against the old list. Without keys, Vue uses an algorithm that minimizes element movement and tries to patch/reuse elements of the same type in-place as much as possible. With keys, it will reorder elements based on the order change of keys, and elements with keys that are no longer present will always be removed/destroyed.
88

0 commit comments

Comments
 (0)