File tree Expand file tree Collapse file tree 1 file changed +1
-3
lines changed
Expand file tree Collapse file tree 1 file changed +1
-3
lines changed Original file line number Diff line number Diff line change @@ -415,7 +415,7 @@ function diffElementNodes(
415415 isHydrating ,
416416 refQueue
417417) {
418- let oldProps = oldVNode . props ;
418+ let oldProps = oldVNode . props || EMPTY_OBJ ;
419419 let newProps = newVNode . props ;
420420 let nodeType = /** @type {string } */ ( newVNode . type ) ;
421421 /** @type {any } */
@@ -485,8 +485,6 @@ function diffElementNodes(
485485 // If excessDomChildren was not null, repopulate it with the current element's children:
486486 excessDomChildren = excessDomChildren && slice . call ( dom . childNodes ) ;
487487
488- oldProps = oldVNode . props || EMPTY_OBJ ;
489-
490488 // If we are in a situation where we are not hydrating but are using
491489 // existing DOM (e.g. replaceNode) we should read the existing DOM
492490 // attributes to diff them
You can’t perform that action at this time.
0 commit comments