diff --git a/javascript/api_idom.ts b/javascript/api_idom.ts index 9c3f21501..cb8b9f83b 100644 --- a/javascript/api_idom.ts +++ b/javascript/api_idom.ts @@ -237,6 +237,9 @@ export class IncrementalDomRendererImpl implements IncrementalDomRenderer { // we can tag the element. in SSR, we do best effort guessing using // child nodes. if (!el || el.__hasBeenRendered || el.hasChildNodes()) { + if (el) { + el.__hasBeenRendered = true; + } this.skip(); // And exit its node so that we will continue with the next node. this.close();