MCPcopy Create free account
hub / github.com/Effect-TS/effect / mounted

Function mounted

packages/ui/native/src/internal/node.ts:27–32  ·  view source on GitHub ↗
(n: NativeNode)

Source from the content-addressed store, hash-verified

25 * @internal
26 */
27export 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.

Callers 8

listenFunction · 0.90
blurFocusedFunction · 0.90
persistFunction · 0.90
installStickyFunction · 0.90
assignFunction · 0.90
commitLaterFunction · 0.90
flushFunction · 0.90
runFunction · 0.90

Calls 1

childrenMethod · 0.45

Tested by

no test coverage detected