v4.1.2 - Company Detection Fixes
Chrome Extension
Version 4.1.2•Patch release fixing company detection double rendering and storage race conditions
Bug Fixes
Company Detection
- Double Rendering Fix: Fixed company cards flashing twice during detection
- Changed from
useEffecttouseLayoutEffectfor synchronous updates before paint - Prevents visual flash where companies appear without checkmarks first
- Companies now render once with correct saved status from the start
- Changed from
- Saved Status Display: Fixed saved URLs reference update timing
- Updated
savedLinkedInUrlsRefsynchronously before state updates - Ensures green checkmarks appear immediately when companies are rendered
- Matches profile detection behavior exactly
- Updated
Storage Operations
- Atomic Operation Race Condition: Fixed Chrome storage race conditions
- Added retry logic with verification to
checkAndSetInStorefunction - Handles cases where Chrome storage writes aren't immediately readable
- Retries up to 3 times with 10ms delay between attempts
- Prevents "CRITICAL: Atomic operation failed" errors
- Applied to both company and profile storage operations
- Added retry logic with verification to
Code Consistency
- Company-Profile Parity: Ensured company handling matches profile handling exactly
- Unified rendering flow between companies and profiles
- Consistent state management and deduplication logic
- Same backend check and render pattern for both types
Technical Improvements
Side Panel
- Synchronous Updates: Used
useLayoutEffectfor company visibility updates- Runs synchronously before browser paint
- Prevents visual artifacts and double rendering
- Better user experience with smoother transitions
Content Script
- Storage Reliability: Enhanced storage operation reliability
- Verification step after storage writes
- Automatic retry mechanism for failed verifications
- Better error handling and logging
Installation
Download Chrome Extension v4.1.2
Upgrade Notes
This is a patch release with bug fixes and improvements. If you're upgrading from v4.1.1:
- No Breaking Changes: All changes are backward compatible
- Company Detection: Companies now display smoothly without double rendering
- Storage Reliability: More reliable storage operations prevent race condition errors
- User Experience: Improved visual consistency between company and profile detection
Support
Need help? Visit our Help Center or contact us.