MCPcopy Create free account
hub / github.com/arctic-cli/interface / use

Function use

packages/ui/src/context/helper.tsx:19–23  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

17 )
18 },
19 use() {
20 const value = useContext(ctx)
21 if (!value) throw new Error(`${input.name} context must be used within a context provider`)
22 return value
23 },
24 }
25}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected