]> git.ipfire.org Git - thirdparty/vuejs/router.git/commitdiff
refactor: remove leftovers
authorEduardo San Martin Morote <posva13@gmail.com>
Mon, 28 Jun 2021 16:34:28 +0000 (18:34 +0200)
committerEduardo San Martin Morote <posva13@gmail.com>
Mon, 28 Jun 2021 16:34:28 +0000 (18:34 +0200)
src/injectionSymbols.ts
src/router.ts

index 6cff569c9c2e2f2a8ad8132d65938cd82585e56e..0d345ea1f9ad12ba7df2027675cfa21c81d8520f 100644 (file)
@@ -54,10 +54,6 @@ export const routeLocationKey = /*#__PURE__*/ PolySymbol(
   __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.
index 5107e192778f33bd3ba857952b5ea2458d77cc50..4895b884c98195520a940e9ff61f2e91ac50b05c 100644 (file)
@@ -65,7 +65,6 @@ import {
   routeLocationKey,
   routerKey,
   routerViewLocationKey,
-  suspendedRouteKey,
 } from './injectionSymbols'
 import { addDevtools } from './devtools'
 
@@ -370,7 +369,6 @@ export function createRouter(options: RouterOptions): Router {
     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) {
@@ -1191,7 +1189,6 @@ export function createRouter(options: RouterOptions): Router {
 
       app.provide(routerKey, router)
       app.provide(routeLocationKey, reactive(reactiveRoute))
-      app.provide(suspendedRouteKey, suspendedRoute)
       app.provide(routerViewLocationKey, currentRoute)
 
       let unmountApp = app.unmount