From a94d716c0dd952f30b4b44cc2cf3436c98c3baad Mon Sep 17 00:00:00 2001 From: Marco Botto Date: Fri, 3 Mar 2017 20:45:29 +0100 Subject: [PATCH] fix(reducer): save last transition instead - rename initialState property - save Transition instead of `to()` state in reducer --- src/reducer.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/reducer.ts b/src/reducer.ts index 3bebedb..60c6ebc 100644 --- a/src/reducer.ts +++ b/src/reducer.ts @@ -7,7 +7,7 @@ import { const initialState = { transitioning: false, - current: {} + last: {} } export const routerReducer = (state = initialState, action) => { @@ -21,7 +21,7 @@ export const routerReducer = (state = initialState, action) => { case FINISH_TRANSITION: { return { transitioning: false, - last: action.transition.to() + last: action.transition } } case IGNORED_TRANSITION: {