The user a profile page is about comes through this hook, which loads them by the name in the URL and keeps them live. Each tab of the profile loads its own lists, by the user's id.

Functions

f
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.

Interfaces

I
UseProfileResult

Returned by useProfile to UserPublicProfile.