Skip to content

Commit

Permalink
Fix stale DOM with async preact-router
Browse files Browse the repository at this point in the history
  • Loading branch information
marvinhagemeister committed Apr 14, 2019
1 parent f7c7f2f commit e3e2525
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/diff/index.js
Expand Up @@ -70,7 +70,7 @@ export function diff(dom, parentDom, newVNode, oldVNode, context, isSvg, excessD
if (oldVNode._component) {
c = newVNode._component = oldVNode._component;
clearProcessingException = c._processingException;
newVNode._dom = oldVNode._dom;
dom = newVNode._dom = oldVNode._dom;
}
else {
// Instantiate the new component
Expand Down

0 comments on commit e3e2525

Please sign in to comment.