(node?: DOMNode)
| 417 | // without going through React's reconciler. Pair with markDirty() so the |
| 418 | // renderer knows which subtree to re-evaluate. |
| 419 | export const scheduleRenderFrom = (node?: DOMNode): void => { |
| 420 | let cur: DOMNode | undefined = node |
| 421 | while (cur?.parentNode) cur = cur.parentNode |
| 422 | if (cur && cur.nodeName !== '#text') (cur as DOMElement).onRender?.() |
| 423 | } |
| 424 | |
| 425 | export const setTextNodeValue = (node: TextNode, text: string): void => { |
| 426 | if (typeof text !== 'string') { |
no test coverage detected