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

Function locationQuery

packages/tui/src/context/data.tsx:54–56  ·  view source on GitHub ↗
(ref?: LocationRef)

Source from the content-addressed store, hash-verified

52}
53
54function locationQuery(ref?: LocationRef) {
55 return ref ? { directory: ref.directory, workspace: ref.workspaceID } : undefined
56}
57
58export const { use: useData, provider: DataProvider } = createSimpleContext({
59 name: "Data",

Callers 1

refreshFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected