MCPcopy Create free account
hub / github.com/codicocodes/speedtyper.dev / useUser

Function useUser

packages/webapp-next/common/api/user.ts:38–44  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

36};
37
38export const useUser = () => {
39 const [user, setUser] = useState<User | null>(null);
40 useEffect(() => {
41 fetchUser2().then((u) => setUser(u));
42 }, []);
43 return user;
44};

Callers 2

Play2PageFunction · 0.90
ResultPageFunction · 0.90

Calls 1

fetchUser2Function · 0.85

Tested by

no test coverage detected