We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d6a3812 commit 382e34bCopy full SHA for 382e34b
packages/router/src/experimental/index.ts
@@ -94,7 +94,14 @@ import { NavigationResult as NavResult } from './data-loaders/entries/index'
94
/**
95
* @deprecated Use {@link reroute} instead.
96
*/
97
-export const NavigationResult = NavResult
+export class NavigationResult extends NavResult {
98
+ constructor(...args: ConstructorParameters<typeof NavResult>) {
99
+ super(...args)
100
+ console.warn(
101
+ `[vue-router]: new NavigationResult(to) is deprecated. Use reroute(to) instead.`
102
+ )
103
+ }
104
+}
105
106
// Basic loader
107
export {
0 commit comments