Skip to main content
useAppData reads GET /apps/:appId, the per-app data endpoint. Without a username it returns the signed-in user’s own data; with one it returns what the caller is allowed to see of that user’s data.

Options

string
required
The app’s slug.
string
Whose data to read. Omit for the signed-in user. On a user page, pass getAppUser()?.username.
boolean
default:"true"
Standard TanStack Query flag.

Response

T
The app’s data for that user.
'public' | 'followers' | 'private'
Who the owner allows to see it. Set by the owner in app settings.
boolean
Whether the caller is the owner.
boolean
Whether the caller follows the owner, when that is relevant.
Query key: ['app-data', appId, username || 'me'], cached for five minutes.