Preparing search index...
The search index is not available
React Router API Reference
React Router API Reference
react-router
UNSAFE_useScrollRestoration
Function UNSAFE_useScrollRestoration
UNSAFE_
use
Scroll
Restoration
(
__namedParameters
?
)
:
void
When rendered inside a RouterProvider, will restore scroll positions on navigations
Parameters
__namedParameters
:
{
getKey
?:
GetScrollRestorationKeyFunction
;
storageKey
?:
string
;
}
= {}
Optional
get
Key
?:
GetScrollRestorationKeyFunction
Optional
storage
Key
?:
string
Returns
void
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
React Router API Reference
Loading...
When rendered inside a RouterProvider, will restore scroll positions on navigations