fix: remove relayPool dependency from content loaders

- Remove relayPool from useEffect dependencies in useArticleLoader and useExternalUrlLoader
- This prevents content reloading when relay status changes (going offline/online)
- Content loaders now only re-run when the actual content identifier changes
- Fixes issue where loading skeleton appears when going offline with cached content
This commit is contained in:
Gigi
2025-10-30 20:20:07 +01:00
parent ad56acb712
commit 15b3b5b990
2 changed files with 0 additions and 2 deletions

View File

@@ -311,7 +311,6 @@ export function useArticleLoader({
}
}, [
naddr,
relayPool,
eventStore,
previewData,
setSelectedUrl,

View File

@@ -167,7 +167,6 @@ export function useExternalUrlLoader({
}
}, [
url,
relayPool,
eventStore,
cachedUrlHighlights,
setReaderContent,