Skip to content

Commit dcc4680

Browse files
author
Nicolas Bregenzer
committed
suggested fix for #627
1 parent 7f2f93c commit dcc4680

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/utils/createRouter.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,6 @@ function createRouter(options) {
160160

161161
function updateState() {
162162
state = nextState;
163-
nextState = {};
164163
}
165164

166165
if (typeof location === 'string') {
@@ -376,6 +375,7 @@ function createRouter(options) {
376375
if (error || transition.isAborted)
377376
return callback.call(router, error, transition);
378377

378+
nextState = {};
379379
nextState.path = path;
380380
nextState.action = action;
381381
nextState.pathname = pathname;

0 commit comments

Comments
 (0)