Skip to content

Commit

Permalink
refactor: Remove useless(i hope) tick in redirect
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexxNB committed May 6, 2021
1 parent 3a2b242 commit d8e185e
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/route.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,6 @@ export function createRouteObject(options){
const match = getRouteMatch(route.pattern,path);

if(!route.fallback && match && route.redirect && (!route.exact || (route.exact && match.exact))){
await tick();
const nextUrl = makeRedirectURL(path,route.parent && route.parent.pattern,route.redirect);
return router.goto(nextUrl, true);
}
Expand Down

0 comments on commit d8e185e

Please sign in to comment.