unlock(), setProgress(), reset(), etc.
Signature
Returns
The achievement engine instance with all imperative methods.
Example
Notes
- This hook does not cause re-renders when state changes - use reactive hooks like
useIsUnlockedoruseProgressfor reactive UI - Must be used within an
AchievementsProvideror the factory’sProvider - Use this hook when you need to imperatively trigger achievement actions (unlock, progress updates, etc.)
- For reading reactive state, prefer specialized hooks like
useIsUnlocked,useProgress, oruseUnlockedCount
