Skip to content

Complete guide to

Mastering Pinia

written by its creator

API Documentation / NavigationGuardWithThis

Interface: NavigationGuardWithThis<T>

Navigation guard. See Navigation Guards.

Type parameters

Name
T

Callable

NavigationGuardWithThis(this, to, from, next): NavigationGuardReturn | Promise<NavigationGuardReturn>

Parameters

NameType
thisT
toRouteLocationNormalized
fromRouteLocationNormalized
nextNavigationGuardNext

Returns

NavigationGuardReturn | Promise<NavigationGuardReturn>

Released under the MIT License.