UNSAFE_useScrollRestoration
When rendered inside a RouterProvider, will restore scroll positions on navigations
function UNSAFE_useScrollRestoration({ getKey, storageKey }?: {
getKey?: GetScrollRestorationKeyFunction;
storageKey?: string;
}): void;§
UNSAFE_useScrollRestoration({ getKey, storageKey }?: {
[src]getKey?: GetScrollRestorationKeyFunction;
storageKey?: string;
}): void§Parameters
§
{ getKey, storageKey }?: {
[src]getKey?: GetScrollRestorationKeyFunction;
storageKey?: string;
} optional