diff options
| author | Fuwn <[email protected]> | 2026-02-10 00:12:25 -0800 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2026-02-10 00:12:25 -0800 |
| commit | 32219ec9656e7f46e516c7c41c133133d008e9a4 (patch) | |
| tree | e335fa4b2e32f562b0861cd02a1abe618e8cb6b9 /apps/web/lib/hooks | |
| parent | fix: P2 security hardening and tier limit parity (diff) | |
| download | asa.news-32219ec9656e7f46e516c7c41c133133d008e9a4.tar.xz asa.news-32219ec9656e7f46e516c7c41c133133d008e9a4.zip | |
fix: reduce lint warnings from 34 to 0
Disable no-img-element (RSS reader needs <img> for arbitrary external
URLs). Remove unused variables/imports and redundant getUser() calls
guarded by middleware. Fix exhaustive-deps by adding stable deps,
wrapping handlers in useCallback, and suppressing intentional omissions.
Fix ref cleanup in use-realtime-entries. Allow triple-slash TS reference
directives in no-comments rule.
Diffstat (limited to 'apps/web/lib/hooks')
| -rw-r--r-- | apps/web/lib/hooks/use-realtime-entries.ts | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/apps/web/lib/hooks/use-realtime-entries.ts b/apps/web/lib/hooks/use-realtime-entries.ts index 0eaba77..3fec9f6 100644 --- a/apps/web/lib/hooks/use-realtime-entries.ts +++ b/apps/web/lib/hooks/use-realtime-entries.ts @@ -39,7 +39,9 @@ export function useRealtimeEntries() { }) } - const channel = supabaseClientReference.current + const supabaseClient = supabaseClientReference.current + + const channel = supabaseClient .channel("entries-realtime") .on( "postgres_changes", @@ -68,7 +70,7 @@ export function useRealtimeEntries() { clearTimeout(debounceTimerReference.current) } - supabaseClientReference.current.removeChannel(channel) + supabaseClient.removeChannel(channel) } }, [queryClient]) } |