You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: stabilize property setter functions by using global options & fix ci (#1)
* fix: stabilize property setter functions by using global options
Property setter functions (setValue, setButtonText, etc.) from
useRive* hooks were unstable because the options object was
recreated on each render, even though useCallback was used for
getProperty. This caused unnecessary re-renders and listener resets.
Extract options to global constants to ensure stable object
references across renders. For useRiveTrigger, use useMemo to
recreate options only when onTrigger changes.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
* fix(chore): ci - fix
---------
Co-authored-by: Claude <noreply@anthropic.com>
0 commit comments