Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Properly replace entire history stack - Fix for Issues #408
  • Loading branch information
nitsujri committed Mar 29, 2016
commit b109bcc79076401402227ddfd9a582b30a67ea58
3 changes: 2 additions & 1 deletion src/Reducer.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,8 @@ function inject(state, action, props, scenes) {
if (state.children[state.index].sceneKey == action.key){
return state;
}
return {...state, children:[...state.children.slice(0,-1), getInitialState(props, scenes, state.index, action)]};
// return {...state, children:[...state.children.slice(0,-1), getInitialState(props, scenes, state.index, action)]};
return {...state, index:0, children:[getInitialState(props, scenes, state.index, action)]};
default:
return state;

Expand Down