Skip to content

Commit b3e4d8c

Browse files
committed
Fix a regression in discovery of shared vdom nodes
1 parent 698a72d commit b3e4d8c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/data/fill.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
function fill (dataTree) {
44
function fillRec (node) {
55
// we compute all the descendants vdom under the current node
6-
let descendantsVDOM = [], descendantsVDOMData = [];
6+
let descendantsVDOM = [ node.vdom ], descendantsVDOMData = [ node.data ];
77
const newChildren = node.data.children.map(node => {
88
const res = fillRec(node);
99
if (descendantsVDOM.indexOf(res.vdom) === -1) {

0 commit comments

Comments
 (0)