AeThex-OS/client
Claude 879abba10b
fix: Memory leak in battery API event listeners
The battery level and charging event listeners were added but never
cleaned up when the component unmounts. This caused memory leaks as
anonymous functions couldn't be removed.

Fix:
- Store handler references in variables
- Properly cleanup event listeners in useEffect return function
- Prevents memory leaks on component unmount/remount cycles
2026-01-04 06:48:21 +00:00
..
public modified: client/index.html 2025-12-22 22:44:12 +00:00
src fix: Memory leak in battery API event listeners 2026-01-04 06:48:21 +00:00
index.html modified: client/index.html 2025-12-22 22:44:12 +00:00