(content: VNode)
| 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?.(); |