mirror of
https://github.com/dergigi/boris.git
synced 2026-02-17 21:15:02 +01:00
fix: resolve all linting errors and type issues
- Remove unused setShowOfflineIndicator calls - Remove unused areAllRelaysLocal import - Fix duplicate key 'failedRelays' in console.log - Replace 'any' types with proper HighlightEvent interface - Add eslint-disable comments for intentionally excluded useEffect dependencies - All linting errors resolved, type checks pass
This commit is contained in:
@@ -315,6 +315,9 @@ export function useArticleLoader({
|
||||
return () => {
|
||||
mountedRef.current = false
|
||||
}
|
||||
// Dependencies intentionally excluded to prevent re-renders when relay/eventStore state changes
|
||||
// This fixes the loading skeleton appearing when going offline (flight mode)
|
||||
// eslint-disable-next-line react-hooks/exhaustive-deps
|
||||
}, [
|
||||
naddr,
|
||||
previewData
|
||||
|
||||
@@ -165,6 +165,9 @@ export function useExternalUrlLoader({
|
||||
return () => {
|
||||
mountedRef.current = false
|
||||
}
|
||||
// Dependencies intentionally excluded to prevent re-renders when relay/eventStore state changes
|
||||
// This fixes the loading skeleton appearing when going offline (flight mode)
|
||||
// eslint-disable-next-line react-hooks/exhaustive-deps
|
||||
}, [
|
||||
url,
|
||||
cachedUrlHighlights
|
||||
|
||||
Reference in New Issue
Block a user