mirror of
https://github.com/dergigi/boris.git
synced 2025-12-18 15:14:20 +01:00
fix: disable eslint warning for useEffect dependencies in useProfileLabels
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user