fix: resolve Rules of Hooks violation by using eventStore instead of useEventModel in map

This commit is contained in:
Gigi
2025-11-02 20:37:50 +01:00
parent 3b30bc98c7
commit da385cd037
3 changed files with 93 additions and 38 deletions

View File

@@ -24,7 +24,7 @@ export const useMarkdownToHTML = (
console.log('[useMarkdownToHTML] Hook called, markdown length:', markdown?.length || 0, 'hasRelayPool:', !!relayPool)
// Resolve profile labels progressively as profiles load
const profileLabels = useProfileLabels(markdown || '')
const profileLabels = useProfileLabels(markdown || '', relayPool)
console.log('[useMarkdownToHTML] Profile labels size:', profileLabels.size)
// Fetch article titles