mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-09-09 12:46:10 -05:00
Avoid jumpiness in UI when clicking back button
This commit is contained in:
@@ -21,5 +21,5 @@ export function ConditionalScrollRestoration() {
|
||||
return null;
|
||||
}
|
||||
|
||||
return <ScrollRestoration />;
|
||||
return <ScrollRestoration getKey={(location) => location.pathname} />;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user