fix: add autoScrollToPosition to useEffect dependency array

- Fixes react-hooks/exhaustive-deps warning
- Ensures effect reruns when auto-scroll setting changes
This commit is contained in:
Gigi
2025-10-15 23:08:21 +02:00
parent 02eaa1c8f8
commit 474da25f77

View File

@@ -258,7 +258,7 @@ const ContentPanel: React.FC<ContentPanelProps> = ({
}
loadPosition()
}, [isTextContent, activeAccount, relayPool, eventStore, articleIdentifier, settings?.syncReadingPosition, selectedUrl])
}, [isTextContent, activeAccount, relayPool, eventStore, articleIdentifier, settings?.syncReadingPosition, settings?.autoScrollToPosition, selectedUrl])
// Save position before unmounting or changing article
useEffect(() => {