mirror of
https://github.com/AeThex-Corporation/AeThex-OS.git
synced 2026-04-18 14:27:20 +00:00
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 |
||
|---|---|---|
| .. | ||
| components | ||
| hooks | ||
| lib | ||
| pages | ||
| shared | ||
| App.tsx | ||
| index.css | ||
| main.tsx | ||