refactor: remove eslint-disable comments by typing publish, fixing unused-vars, and updating effect deps

This commit is contained in:
Gigi
2025-10-21 07:21:01 +02:00
parent 18fcf6064e
commit 29918f78f9
5 changed files with 48 additions and 41 deletions

View File

@@ -120,7 +120,18 @@ export function useArticleLoader({
return () => {
mountedRef.current = false
}
// Intentionally excluding setter functions from dependencies to prevent race conditions
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [naddr, relayPool, settings])
}, [
naddr,
relayPool,
settings,
setSelectedUrl,
setReaderContent,
setReaderLoading,
setIsCollapsed,
setHighlights,
setHighlightsLoading,
setCurrentArticleCoordinate,
setCurrentArticleEventId,
setCurrentArticle
])
}