Skip to content
This repository was archived by the owner on Apr 28, 2026. It is now read-only.

Commit 7df7c8a

Browse files
author
ComputelessComputer
committed
Keep home scroll ref stable
Remove the home scroll position from the ref callback dependencies so scrolling no longer forces React to detach and reattach the content ref.
1 parent b0b1ad3 commit 7df7c8a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/router.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -607,7 +607,7 @@ function HomeScreen() {
607607
node.scrollTop = snapshot.homeScrollTop;
608608
}
609609
},
610-
[attachHomeScrollFade, snapshot.homeScrollTop],
610+
[attachHomeScrollFade],
611611
);
612612

613613
return (

0 commit comments

Comments
 (0)