mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-04-24 23:19:39 -05:00
Avoid jumpiness in UI when clicking back button
This commit is contained in:
parent
ce39f213f9
commit
000671d2b5
|
|
@ -21,5 +21,5 @@ export function ConditionalScrollRestoration() {
|
|||
return null;
|
||||
}
|
||||
|
||||
return <ScrollRestoration />;
|
||||
return <ScrollRestoration getKey={(location) => location.pathname} />;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user