MCPcopy Index your code
hub / github.com/simstudioai/sim / clear

Function clear

apps/sim/hooks/mcp/use-mcp-oauth-popup.ts:105–116  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

103 async (serverId: string) => {
104 setConnectingServers((prev) => new Set(prev).add(serverId))
105 const clear = () => {
106 const existing = popupIntervalsRef.current.get(serverId)
107 if (existing !== undefined) {
108 window.clearInterval(existing)
109 popupIntervalsRef.current.delete(serverId)
110 }
111 setConnectingServers((prev) => {
112 const next = new Set(prev)
113 next.delete(serverId)
114 return next
115 })
116 }
117 try {
118 const result = await startOauth({ serverId, workspaceId })
119 if (result.status === 'already_authorized') {

Callers 4

useMcpOauthPopupFunction · 0.70
store.test.tsFile · 0.50
store.test.tsFile · 0.50
useTableUndoFunction · 0.50

Calls 2

getMethod · 0.65
deleteMethod · 0.65

Tested by

no test coverage detected