MCPcopy
hub / github.com/xintaofei/codeg / useConnectionStore

Function useConnectionStore

src/contexts/acp-connections-context.tsx:1963–1971  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1961const ConnectionStoreContext = createContext<ConnectionStoreApi | null>(null)
1962
1963export function useConnectionStore(): ConnectionStoreApi {
1964 const ctx = useContext(ConnectionStoreContext)
1965 if (!ctx) {
1966 throw new Error(
1967 "useConnectionStore must be used within AcpConnectionsProvider"
1968 )
1969 }
1970 return ctx
1971}
1972
1973// ── Actions context (unchanged interface) ──
1974

Callers 6

StatusBarTokensFunction · 0.90
StatusBarConnectionFunction · 0.90
useChildConnectionStateFunction · 0.90
ProbeFunction · 0.90
useConnectionFunction · 0.90
useDelegationChildLiveFunction · 0.90

Calls

no outgoing calls

Tested by 1

ProbeFunction · 0.72