aksonov / aksonov/react-native-router-flux
Router reload when setState
- Lingua principale
- JavaScript
- Stelle
- 8.9k
- Fork
- 2.1k
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
My component
```
class Nav extends Component {
state = {
isUserLogin: false
}
async componentDidMount() {
setTimeout(()=> {
this.setState({isUserLogin: true})
}, 2000);
}
render() {
return (
Actions.pop()}
>
)
}
}
export default Nav;
```
The problem is when i use setState the whole router will reload, so i lost all session on app, anyone know how to fix it?
The idea is im using redux to change TAB BAR style color, when redux send data it reload whole Router
Guida per i contributori
Apri la guida per i contributori
Valutazione
Questa issue non è ancora stata valutata.