Skip to content

DoCurious API Reference / store / selectXpProgress

Function: selectXpProgress()

selectXpProgress(state): number

Defined in: store/useUserStore.ts:247

Select XP progress as a percentage (0-100) toward the next level.

Parameters

state

UserState

Returns

number

Example

ts
const percent = useUserStore(selectXpProgress)
// 75 (meaning 75% of the way to the next level)

DoCurious Platform Documentation