Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/arktypeio/arktype
/ subscribe
Function
subscribe
ark/docs/components/shell/drawer.ts:14–17 ·
view source on GitHub ↗
(listener: () => void)
Source
from the content-addressed store, hash-verified
12
}
13
14
const
subscribe = (listener: () => void) => {
15
listeners.add(listener)
16
return
() => void listeners.delete(listener)
17
}
18
19
export
const
useDrawerOpen = (): boolean =>
20
useSyncExternalStore(
Callers
nothing calls this directly
Calls
2
add
Method · 0.45
delete
Method · 0.45
Tested by
no test coverage detected