Overview
useFetchUserByUsername returns a function that fetches a user’s public profile by their username. Use this for public profile pages where the URL contains a username slug.
Usage Example
Parameters
The hook returns a function. That function accepts:The username to look up.
Optional. Pass
"files" to populate avatarFile and bannerFile with full File objects.Returns
The user’s public profile. When
spaceReputation is requested, it carries an added spaceReputation number. See User data model and Reputation.
