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.
2 parents 3d77b93 + 37c1972 commit 38985d6Copy full SHA for 38985d6
src/Reducer.js
@@ -34,6 +34,8 @@ function inject(state, action, props, scenes) {
34
case POP_ACTION:
35
return {...state, index:state.index-1, children:state.children.slice(0, -1) };
36
case REFRESH_ACTION:
37
+ // use key from state.key to avoid losing the index_ prefix during refresh
38
+ props.key = state.key;
39
return {...state, ...props};
40
case PUSH_ACTION:
41
if (state.children[state.index].sceneKey == action.key){
0 commit comments