Skip to content

Commit

Permalink
Also pass oldVNode to options.diff()
Browse files Browse the repository at this point in the history
  • Loading branch information
developit committed May 2, 2019
1 parent e28e44c commit d8c18b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/diff/index.js
Expand Up @@ -36,7 +36,7 @@ export function diff(parentDom, newVNode, oldVNode, context, isSvg, excessDomChi
// is equal.
if (newVNode._self!==newVNode) return null;

if (options.diff) options.diff(newVNode);
if (options.diff) options.diff(newVNode, oldVNode);

let c, p, isNew = false, oldProps, oldState, snapshot,
newType = newVNode.type, clearProcessingException;
Expand Down

0 comments on commit d8c18b1

Please sign in to comment.