Skip to content
This repository has been archived by the owner on Dec 19, 2017. It is now read-only.

Commit

Permalink
Fix race condition with ctx.redirect (#194)
Browse files Browse the repository at this point in the history
  • Loading branch information
caseyWebb committed Aug 31, 2017
1 parent a557a67 commit 719673c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ function createViewModel(params) {
})
} else if (router.ctx._redirect) {
const { router: r, path: p } = traversePath(router, router.ctx._redirect)
r.update(p, router.ctx._redirectArgs)
setTimeout(() => r.update(p, router.ctx._redirectArgs))
}

return router
Expand Down

0 comments on commit 719673c

Please sign in to comment.