(n: NativeNode)
| 25 | * @internal |
| 26 | */ |
| 27 | export const mounted = (n: NativeNode): boolean => { |
| 28 | for (; n.parent !== undefined; n = n.parent) { |
| 29 | if (n.parent.kind.children?.(n.host) === false) return false |
| 30 | } |
| 31 | return n.kind === surface |
| 32 | } |
| 33 | |
| 34 | /** |
| 35 | * Marks the node and the nodes around it for the next commit. |
no test coverage detected