Skip to content

destillationapp-frontend v0.1.0


destillationapp-frontend / helpers/routerGuards / comingFromRouteGuard

Function: comingFromRouteGuard()

comingFromRouteGuard(to, from, next): void

Defined in: helpers/routerGuards.ts:11

Navigation guard that sets a flag in the store indicating whether the user is coming from another route.

Parameters

to

RouteLocationNormalizedGeneric

The target Route object being navigated to.

from

RouteLocationNormalizedGeneric

The current Route object being navigated away from.

next

NavigationGuardNext

The function to resolve the navigation.

Returns

void