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 ef9fbba commit 4c34c9aCopy full SHA for 4c34c9a
src/route.js
@@ -35,6 +35,11 @@ export default class Route {
35
this.path = path
36
// for internal use
37
this.matched = matched || router._notFoundHandler
38
+ // internal reference to router
39
+ Object.defineProperty(this, 'router', {
40
+ enumerable: false,
41
+ value: router
42
+ })
43
// Important: freeze self to prevent observation
44
Object.freeze(this)
45
}
0 commit comments