Skip to content

Commit

Permalink
refactor(hdom-canvas): update diffArray call site
Browse files Browse the repository at this point in the history
  • Loading branch information
postspectacular committed Dec 8, 2018
1 parent c3f6f98 commit a7e9def
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/hdom-canvas/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ export const diffTree = (opts: Partial<HDOMOpts>,
if (attribs.__impl && attribs.__impl !== IMPL) {
return attribs.__impl.diffTree(opts, attribs.__impl, parent, prev, curr, child);
}
const delta = diffArray(prev, curr, equiv, DiffMode.ONLY_DISTANCE);
const delta = diffArray(prev, curr, DiffMode.ONLY_DISTANCE, equiv);
if (delta.distance > 0) {
return createTree(opts, parent, curr);
}
Expand Down

0 comments on commit a7e9def

Please sign in to comment.