Skip to content
On this page

API Documentation / RouterScrollBehavior

Interface: RouterScrollBehavior ​

Callable ​

RouterScrollBehavior ​

▸ RouterScrollBehavior(to, from, savedPosition): Awaitable<false | void | ScrollPosition>

Parameters ​

NameTypeDescription
toRouteLocationNormalizedRoute location where we are navigating to
fromRouteLocationNormalizedLoadedRoute location where we are navigating from
savedPositionnull | _ScrollPositionNormalizedsaved position if it exists, null otherwise

Returns ​

Awaitable<false | void | ScrollPosition>

Lançado sob a licença MIT.