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

Function handleAddChange

packages/app/src/components/dialog-select-server.tsx:378–384  ·  view source on GitHub ↗
(value: string)

Source from the content-addressed store, hash-verified

376 }
377
378 const handleAddChange = (value: string) => {
379 if (addMutation.isPending) return
380 setStore("addServer", { url: value, error: "" })
381 void previewStatus(value, store.addServer.username, store.addServer.password, (next) =>
382 setStore("addServer", { status: next }),
383 )
384 }
385
386 const handleAddNameChange = (value: string) => {
387 if (addMutation.isPending) return

Callers

nothing calls this directly

Calls 2

setStoreFunction · 0.85
previewStatusFunction · 0.85

Tested by

no test coverage detected