Skip to content

Commit 09d2496

Browse files
authored
type error
1 parent b1b3b89 commit 09d2496

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/browser-router.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ export default class BrowserRouter extends Router {
7474
const path = pathname + search + hash;
7575
if (this.router.isRunning) this.router.cancel();
7676
const currentTransition = this.router.currentTransition;
77-
let opts = { path };
77+
let opts = { path, ctx: new Context() };
7878
if (state.ctx) opts.ctx = state.ctx;
7979
let { location, route, status, params, redirect, result, ctx, error } = await this.router.run(opts);
8080
if (error && error.message === 'Cancelled') return;

0 commit comments

Comments
 (0)