File tree Expand file tree Collapse file tree 2 files changed +14
-2
lines changed Expand file tree Collapse file tree 2 files changed +14
-2
lines changed Original file line number Diff line number Diff line change @@ -14,11 +14,14 @@ export {
14
14
export { RouterHistory } from './history/common'
15
15
16
16
export { RouteRecord , RouteRecordNormalized } from './matcher/types'
17
+
17
18
export {
18
19
PathParserOptions ,
19
20
_PathParserOptions ,
20
21
} from './matcher/pathParserRanker'
21
22
23
+ export { routeLocationKey , routerKey } from './injectionSymbols'
24
+
22
25
export {
23
26
RouteMeta ,
24
27
_RouteLocationBase ,
Original file line number Diff line number Diff line change @@ -21,11 +21,20 @@ export const viewDepthKey = /*#__PURE__*/ PolySymbol(
21
21
__DEV__ ? 'router view depth' : 'rvd'
22
22
) as InjectionKey < number >
23
23
24
- // r = router
24
+ /**
25
+ * Allows overriding the router instance returned by `useRouter` in tests. r stands for router
26
+ *
27
+ * @internal
28
+ */
25
29
export const routerKey = /*#__PURE__*/ PolySymbol (
26
30
__DEV__ ? 'router' : 'r'
27
31
) as InjectionKey < Router >
28
- // rt = route ___location
32
+
33
+ /**
34
+ * Allows overriding the current route returned by `useRoute` in tests. rl stands for route ___location
35
+ *
36
+ * @internal
37
+ */
29
38
export const routeLocationKey = /*#__PURE__*/ PolySymbol (
30
39
__DEV__ ? 'route ___location' : 'rl'
31
40
) as InjectionKey < RouteLocationNormalizedLoaded >
You can’t perform that action at this time.
0 commit comments