Skip to content

Latest commit

 

History

History
27 lines (17 loc) · 845 Bytes

RouterScrollBehavior.md

File metadata and controls

27 lines (17 loc) · 845 Bytes
editLink

API Documentation / RouterScrollBehavior

Interface: RouterScrollBehavior

Type of the scrollBehavior option that can be passed to createRouter.

Callable

RouterScrollBehavior

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

Parameters

Name Type Description
to RouteLocationNormalized Route location where we are navigating to
from RouteLocationNormalizedLoaded Route location where we are navigating from
savedPosition null | _ScrollPositionNormalized saved position if it exists, null otherwise

Returns

Awaitable<false | void | ScrollPosition>