function useProfile
useProfile(username: string | undefined): UseProfileResult

Returns the user named username, from GET /api/users/@:username, which answers a former name or another case too. The profile then puts the current name in its URL, and that path, naming the user on screen, fetches nothing; another user's does. The socket's user_updated keeps them live, and a reconnection fetches them again.

Parameters

username: string | undefined

Return Type

Usage

import { useProfile } from "src/hooks/profile/useProfile.ts";