fix: disable eslint warning for useEffect dependencies in useProfileLabels

This commit is contained in:
Gigi
2025-11-02 21:06:16 +01:00
parent e814aadb5b
commit 074af764ed

View File

@@ -250,6 +250,8 @@ export function useProfileLabels(content: string, relayPool?: RelayPool | null):
console.error(`[${ts()}] [npub-resolve] Error fetching profiles after`, fetchDuration, 'ms:', err) console.error(`[${ts()}] [npub-resolve] Error fetching profiles after`, fetchDuration, 'ms:', err)
}) })
} }
// eslint-disable-next-line react-hooks/exhaustive-deps
// initialLabels is derived from profileData, profileLabels is state we update (would cause loops)
}, [profileData, eventStore, relayPool]) }, [profileData, eventStore, relayPool])
// Only log when size actually changes to reduce noise // Only log when size actually changes to reduce noise