mirror of
https://github.com/bitsocialnet/5chan.git
synced 2026-08-03 07:41:04 +02:00
fix retain scroll position in catalog view
This commit is contained in:
@@ -73,6 +73,12 @@ const Thread = () => {
|
||||
const commentMediaInfo = getCommentMediaInfo(comment);
|
||||
const fallbackImgUrl = "assets/filedeleted-res.gif";
|
||||
|
||||
|
||||
useEffect(() => {
|
||||
window.scrollTo(0, 0);
|
||||
}, []);
|
||||
|
||||
|
||||
useEffect(() => {
|
||||
if ( comment.state === "failed" && selectedAddress === undefined) {
|
||||
navigate('/404');
|
||||
|
||||
Reference in New Issue
Block a user