Enhance workflow knowledge retrieval cache fix with edge case handling
🔧 Improved the previous cache bug fix to handle additional edge cases ## Additional Improvements 1. **Prevent re-initialization race condition**: Added hasInitialized flag to prevent unwanted re-selection after user manual deselection 2. **Enhanced SWR cache matcher**: More robust cache key matching for both string and object SWR keys 3. **Better error handling**: Improved cache invalidation to handle various SWR key formats ## Edge Cases Tested ✅ - Fast consecutive operations (delete→add→check) - Concurrent multi-tab scenarios - Network interruption handling - User interaction boundaries (manual deselection) - Pagination and search scenarios ## Files Enhanced - web/app/components/app/configuration/dataset-config/select-dataset/index.tsx - web/app/(commonLayout)/datasets/DatasetCard.tsx 🧪 All edge case testing completed successfully in Docker environment 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>pull/22673/head
parent
5a7d32e2ab
commit
f8eaaefce0
Loading…
Reference in New Issue