MCPcopy Index your code
hub / github.com/EasyWebApp/WebCell / updateDOM

Method updateDOM

source/WebCell.tsx:106–116  ·  view source on GitHub ↗
(content: VNode)

Source from the content-addressed store, hash-verified

104 declare updatedCallback?: () => any;
105
106 protected updateDOM(content: VNode) {
107 const result = this.renderer.render(
108 content,
109 this.root,
110 meta.renderMode as 'async'
111 );
112
113 return result instanceof Promise
114 ? result.then(this.updatedCallback?.bind(this))
115 : this.updatedCallback?.();
116 }
117
118 async update() {
119 const vNode = this.render?.();

Callers 1

updateMethod · 0.95

Calls 1

renderMethod · 0.45

Tested by

no test coverage detected