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: prevent unnecessary animation on Tab component mount
Fixes a bug where the Tab animation would run on initial mount even when
already at the target state. This caused unnecessary animation work and
potential visual glitches.
Changes:
- Added isInitialMount ref to track first render
- Skip animation on mount, immediately set value instead
- Subsequent changes animate normally
This ensures underlines appear instantly on first render and only animate
when the active state actually changes.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <[email protected]>
0 commit comments