MCPcopy Create free account
hub / github.com/anomalyco/opencode / sync

Function sync

packages/ui/src/components/tooltip.tsx:68–77  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

66 }
67
68 const sync = () => {
69 const expand = !!ref?.querySelector('[aria-expanded="true"], [data-expanded]')
70 setState("expand", expand)
71 if (expand) {
72 setState("block", true)
73 close()
74 return
75 }
76 drop(expand)
77 }
78
79 const arm = () => {
80 setState("block", true)

Callers 1

TooltipFunction · 0.70

Calls 3

setStateFunction · 0.85
closeFunction · 0.70
dropFunction · 0.70

Tested by

no test coverage detected