Files
anubis-mirror/web/js
Xe Iaso 380d7007ba fix(js/main): add cleanup for toggle event listener in useEffect
The useEffect registered a toggle listener on the <details> element but
never removed it, which could leak handlers on remounts or in tests.
Extract the handler to a named function and return a cleanup that calls
removeEventListener.

Assisted-by: Claude Opus 4.6 via Claude Code
Signed-off-by: Xe Iaso <me@xeiaso.net>
2026-03-24 19:22:51 +00:00
..