MCPcopy
hub / github.com/makeplane/plane / useUser

Function useUser

apps/web/core/hooks/store/user/user-user.ts:13–17  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

11import type { IUserStore } from "@/store/user";
12
13export const useUser = (): IUserStore => {
14 const context = useContext(StoreContext);
15 if (context === undefined) throw new Error("useUser must be used within StoreProvider");
16 return context.user;
17};

Callers 15

root.tsxFile · 0.90
useMemberColumnsFunction · 0.90
useProjectColumnsFunction · 0.90
provider.tsxFile · 0.90
CycleFormFunction · 0.90
ModuleFormFunction · 0.90
lead.tsxFile · 0.90
members.tsxFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected