Skip to content

Commit

Permalink
fix issue by marking dirty before .render since this can potentially …
Browse files Browse the repository at this point in the history
…add another entry on the render queue
  • Loading branch information
JoviDeCroock committed Apr 29, 2019
1 parent 16bbcd9 commit a056d8f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/diff/index.js
Expand Up @@ -139,8 +139,8 @@ export function diff(dom, parentDom, newVNode, oldVNode, context, isSvg, excessD
if (options.render) options.render(newVNode);

let prev = c._prevVNode || null;
let vnode = c._prevVNode = coerceToVNode(c.render(c.props, c.state, c.context));
c._dirty = false;
let vnode = c._prevVNode = coerceToVNode(c.render(c.props, c.state, c.context));

if (c.getChildContext!=null) {
context = assign(assign({}, context), c.getChildContext());
Expand Down

0 comments on commit a056d8f

Please sign in to comment.