InternalOptions
OptionalgetKey?: GetScrollRestorationKeyFunctionA function that returns a key to use for scroll restoration.
This is useful for custom scroll restoration logic, such as using only the pathname
so that subsequent navigations to prior paths will restore the scroll. Defaults
to location.key.
OptionalstorageKey?: stringThe key to use for storing scroll positions in
sessionStorage. Defaults to "react-router-scroll-positions".
When rendered inside a RouterProvider, will restore scroll positions on navigations