Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/yinxin630/fiora
/ useSelfId
Function
useSelfId
packages/app/src/hooks/useStore.tsx:12–15 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
10
}
11
12
export function useSelfId() {
13
const user = useUser();
14
return (user && user._id) ||
''
;
15
}
16
17
export function useIsLogin() {
18
return !!useSelfId();
Callers
6
UserInfo
Function · 0.90
GroupProfile
Function · 0.90
Message
Function · 0.90
Chat
Function · 0.90
MessageList
Function · 0.90
useIsLogin
Function · 0.70
Calls
1
useUser
Function · 0.85
Tested by
no test coverage detected