__DEV__ ? 'route location' : 'rl'
) as InjectionKey<RouteLocationNormalizedLoaded>
-export const suspendedRouteKey = /*#__PURE__*/ PolySymbol(
- __DEV__ ? 'suspended route location' : 'srl'
-) as InjectionKey<Ref<RouteLocationNormalizedLoaded | null>>
-
/**
* Allows overriding the current route used by router-view. Internally this is
* used when the `route` prop is passed.
routeLocationKey,
routerKey,
routerViewLocationKey,
- suspendedRouteKey,
} from './injectionSymbols'
import { addDevtools } from './devtools'
START_LOCATION_NORMALIZED
)
let pendingLocation: RouteLocation = START_LOCATION_NORMALIZED
- const suspendedRoute = shallowRef<RouteLocationNormalizedLoaded | null>()
// leave the scrollRestoration if no scrollBehavior is provided
if (isBrowser && options.scrollBehavior && 'scrollRestoration' in history) {
app.provide(routerKey, router)
app.provide(routeLocationKey, reactive(reactiveRoute))
- app.provide(suspendedRouteKey, suspendedRoute)
app.provide(routerViewLocationKey, currentRoute)
let unmountApp = app.unmount