MCPcopy
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
12export function useSelfId() {
13 const user = useUser();
14 return (user && user._id) || '';
15}
16
17export function useIsLogin() {
18 return !!useSelfId();

Callers 6

UserInfoFunction · 0.90
GroupProfileFunction · 0.90
MessageFunction · 0.90
ChatFunction · 0.90
MessageListFunction · 0.90
useIsLoginFunction · 0.70

Calls 1

useUserFunction · 0.85

Tested by

no test coverage detected