mirror of
https://github.com/dergigi/boris.git
synced 2025-12-17 22:54:30 +01:00
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:
@@ -311,7 +311,6 @@ export function useArticleLoader({
|
||||
}
|
||||
}, [
|
||||
naddr,
|
||||
relayPool,
|
||||
eventStore,
|
||||
previewData,
|
||||
setSelectedUrl,
|
||||
|
||||
Reference in New Issue
Block a user