Skip to content

Commit

Permalink
Golfed render (#2045)
Browse files Browse the repository at this point in the history
  • Loading branch information
triallax authored and marvinhagemeister committed Oct 27, 2019
1 parent f0fa294 commit 51f3e25
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/render.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export function render(vnode, parentDom, replaceNode) {
let commitQueue = [];
diff(
parentDom,
isHydrating ? parentDom._children = vnode : (replaceNode || parentDom)._children = vnode,
(isHydrating ? parentDom : (replaceNode || parentDom))._children = vnode,
oldVNode || EMPTY_OBJ,
EMPTY_OBJ,
parentDom.ownerSVGElement !== undefined,
Expand Down

0 comments on commit 51f3e25

Please sign in to comment.