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 2594f96 commit e478c25Copy full SHA for e478c25
Router.js
@@ -145,7 +145,8 @@ export default class Router {
145
if (!this.routes[name]){
146
throw new Error("No route is defined for name="+name);
147
}
148
- const action = this.routes[name].type === "switch" ? "jump": this.routes[name].type;
+ const type = props.type ? props.type : this.routes[name].type;
149
+ const action = type === "switch" ? "jump": type;
150
if (!action){
151
throw new Error("No type is defined for name="+name);
152
0 commit comments