From: Eduardo San Martin Morote Date: Mon, 28 Jun 2021 16:34:28 +0000 (+0200) Subject: refactor: remove leftovers X-Git-Tag: v4.0.11~26 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e185f79424ec384451664ed1e7603f884938847f;p=thirdparty%2Fvuejs%2Frouter.git refactor: remove leftovers --- diff --git a/src/injectionSymbols.ts b/src/injectionSymbols.ts index 6cff569c..0d345ea1 100644 --- a/src/injectionSymbols.ts +++ b/src/injectionSymbols.ts @@ -54,10 +54,6 @@ export const routeLocationKey = /*#__PURE__*/ PolySymbol( __DEV__ ? 'route location' : 'rl' ) as InjectionKey -export const suspendedRouteKey = /*#__PURE__*/ PolySymbol( - __DEV__ ? 'suspended route location' : 'srl' -) as InjectionKey> - /** * Allows overriding the current route used by router-view. Internally this is * used when the `route` prop is passed. diff --git a/src/router.ts b/src/router.ts index 5107e192..4895b884 100644 --- a/src/router.ts +++ b/src/router.ts @@ -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() // 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