diff --git a/packages/client/src/render/attachChildren.js b/packages/client/src/render/attachChildren.js index 803bc30895..3e244b495e 100644 --- a/packages/client/src/render/attachChildren.js +++ b/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)