Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/21st-dev/1code
/ fetchUser
Function
fetchUser
src/renderer/features/layout/agents-layout.tsx:178–183 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
176
// Fetch desktop user on mount
177
useEffect(() => {
178
async function fetchUser() {
179
if (window.desktopApi?.getUser) {
180
const user = await window.desktopApi.getUser()
181
setDesktopUser(user)
182
}
183
}
184
fetchUser()
185
}, [])
186
Callers
1
AgentsLayout
Function · 0.70
Calls
1
getUser
Method · 0.45
Tested by
no test coverage detected