Skip to content

Commit

Permalink
fix undefined nodeName in complex async apps (#504)
Browse files Browse the repository at this point in the history
  • Loading branch information
lukeed authored Feb 19, 2018
1 parent 8d50dfc commit c5bd3d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/async.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export default function(req) {

this.shouldComponentUpdate = (_, nxt) => {
nxt = nxt.child === void 0;
if (nxt && old === void 0) {
if (nxt && old === void 0 && !!b) {
old = h(b.nodeName, { dangerouslySetInnerHTML: { __html: b.innerHTML } });
} else {
old = ''; // dump it
Expand Down

0 comments on commit c5bd3d8

Please sign in to comment.