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 3d4feff commit 85b5390Copy full SHA for 85b5390
src/browser-router.tsx
@@ -75,7 +75,7 @@ export default class BrowserRouter extends Router {
75
if (this.router.isRunning) this.router.cancel();
76
const currentTransition = this.router.currentTransition;
77
let opts = { path, ctx: new Context() };
78
- if (state.ctx) opts.ctx = state.ctx;
+ if (state && state.ctx) opts.ctx = state.ctx;
79
let { location, route, status, params, redirect, result, ctx, error } = await this.router.run(opts);
80
if (error && error.message === 'Cancelled') return;
81
if (error !== null && error.message !== 'Cancelled') {
0 commit comments