mirror of
https://github.com/status-im/react-navigation.git
synced 2025-02-24 17:18:09 +00:00
fix redirect bug in stacks in tab (#2674)
This commit is contained in:
parent
3a63950ec8
commit
283518b54a
@ -239,6 +239,10 @@ export default (
|
||||
});
|
||||
// console.log(`${order.join('-')}: Processed other tabs:`, {lastIndex: state.index, index});
|
||||
|
||||
// keep active tab index if action type is SET_PARAMS
|
||||
index =
|
||||
action.type === NavigationActions.SET_PARAMS ? state.index : index;
|
||||
|
||||
if (index !== state.index || routes !== state.routes) {
|
||||
return {
|
||||
...state,
|
||||
|
Loading…
x
Reference in New Issue
Block a user