Browse Source

dont try to attachChildren if theres not htmlElement supplied

pull/4023/head
Michael Shanks 6 years ago
parent
commit
4f2f2b9015
  1. 2
      packages/client/src/render/attachChildren.js

2
packages/client/src/render/attachChildren.js

@ -24,6 +24,8 @@ export const attachChildren = initialiseOpts => (htmlElement, options) => {
childNode.destroy()
}
if (!htmlElement) return
if (hydrate) {
while (htmlElement.firstChild) {
htmlElement.removeChild(htmlElement.firstChild)

Loading…
Cancel
Save