aksonov / aksonov/react-native-router-flux
Reset method is not resetting state of origin Stack before moving to another Stack
- Lingua principale
- JavaScript
- Stelle
- 8.9k
- Fork
- 2.1k
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
### Version
- react-native-router-flux v4.0.5
- react-native v0.56.0
If I have two stacks with a few scenes inside of them, is it possible to reset state of origin Stack, once when "reset" is invoked with the key of Scene from another Stack?
For better understanding, this is an example of structure:
```
```
Steps:
1. open secondStack with its initial secondStackFirstScene and push secondStackSecondScene on the navigation stack
2. from that second view invoke Actions.reset("firstStackFirstScene"), it will display first stack - all good,
3. now invoke Actions.secondStack() from there
4. it will display secondStackSecondScene instead of second Stack's initial scene - secondStackFirstScene
Question:
Is there a way to reset state of that second stack, once when navigation is moved to another Stack using "reset" method?
Guida per i contributori
Apri la guida per i contributori
Valutazione
Questa issue non è ancora stata valutata.