Files
lightrag/lightrag_webui/src
yangdx d2efc80fad fix: prevent promise errors in async operations after component unmount
This commit addresses the "Uncaught (in promise) Error: A listener indicated an asynchronous response by returning true, but the message channel closed before a response was received" error that occurs when async operations attempt to update state after component unmount.

Changes:

- Add component mount status tracking with useRef in App.tsx and DocumentManager.tsx
- Implement beforeunload event listeners to handle page reload scenarios
- Add mount status checks before and after async operations
- Add try-catch blocks to properly handle errors in async operations
- Ensure state updates only occur when components are still mounted
- Prevent health check and document polling from causing errors during unmount
2025-04-07 06:04:18 +08:00
..
2025-04-05 02:24:23 +08:00
2025-04-07 05:23:28 +08:00
2025-04-07 01:18:18 +08:00
2025-04-05 15:50:20 +08:00
2025-04-07 05:22:59 +08:00
2025-03-22 00:31:18 +08:00
2025-02-15 23:29:30 +08:00