Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/anomalyco/opencode
/ useLocation
Function
useLocation
packages/tui/src/context/location.tsx:10–14 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
8
}
9
10
export function useLocation() {
11
const value = useContext(context)
12
if (!value) throw new Error(
"Location context must be used within a LocationProvider"
)
13
return value
14
}
Callers
12
Autocomplete
Function · 0.90
usePathFormatter
Function · 0.90
LanguagePicker
Function · 0.85
Titlebar
Function · 0.85
DebugBar
Function · 0.85
DirectoryDataProvider
Function · 0.85
Page
Function · 0.85
useSessionHashScroll
Function · 0.85
tabs.tsx
File · 0.85
layout.tsx
File · 0.85
message-part.tsx
File · 0.85
render
Function · 0.85
Calls
1
useContext
Function · 0.85
Tested by
no test coverage detected