Consistency

This commit is contained in:
Pat Cavit 2016-11-29 14:38:31 -08:00 committed by GitHub
parent 50426a4d20
commit 5f08c278ec

View file

@ -18,7 +18,7 @@
- [`m.request`](#mrequest)
- [`xlink` namespace required](#xlink-namespace-required)
- [Nested arrays in views](#nested-arrays-in-views)
- [Vnode equality checks](#vnode-equality-checks)
- [`vnode` equality checks](#vnode-equality-checks)
---
@ -495,14 +495,14 @@ m("svg",
)
```
***
---
## Nested arrays in views
Arrays now represent [fragments](fragment.md), which are structurally significant in v1.x virtual DOM. Whereas nested arrays in v0.2.x would be flattened into one continuous list of virtual nodes for the purposes of diffing, v1.x preserves the array structure - the children of any given array are not considered siblings of those of adjacent arrays.
***
---
## Vnode equality checks
## `vnode` equality checks
If a vnode is strictly equal to the vnode occupying its place in the last draw, v1.x will skip that part of the tree without checking for mutations or triggering any lifecycle methods in the subtree. The component documentation contains [more detail on this issue](components.md#avoid-creating-component-instances-outside-views).