Improve change detection and enhance content extraction logic

This commit is contained in:
2026-06-15 01:15:35 +02:00
parent 9a4f4c7c2b
commit ec08af4640
3 changed files with 10 additions and 2 deletions

View File

@@ -108,7 +108,10 @@ export default function LibraryManager({ apiBase, library, jobs, onRefresh }) {
})
}
useEffect(() => () => clearToasts(), [])
useEffect(() => () => {
toastTimeoutsRef.current.forEach(timeoutId => clearTimeout(timeoutId))
toastTimeoutsRef.current.clear()
}, [])
function closeForm() {
setFormMode(null)