New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Redux/Mobx Integration: Nested TabNavigator not rendering the first tab navigate #3604
Comments
I believe am having same issue even when not integrated with redux. Current hacky workaround: in Tab1..
|
I noticed that the redux listener for 'willFocus' is not called when first navigating to tab2. Only when switching back and forth again it is called. This could be related to what you're experiencing. |
hi there! if you can't reproduce this without redux then this issue belongs on https://github.com/react-navigation/react-navigation-redux-helpers thank you for taking the time to fill out the issue template properly! |
Ok can reproduce this issue without redux now. When I tried to simplify it couldn't reproduce, so lot of nesting.. https://snack.expo.io/B1LdhUmdM Steps to reproduce:
|
Current Behavior
I have a the following structure with a nested tab navigator (main navigation) inside a stack navigator (for modals to 'popover'). Once managing the state via redux or mobx the first navigate (via tabbing) in the tab navigator to e.g. 'Tab2' is not rendered. After navigating back and forth it gets rendered. Using the same navigation structure but without redux/mobx works just fine.
Expected Behavior
Use a redux/mobx state management with the same behaviour as plain react navigation.
How to reproduce
Here's a demo on expo:
https://snack.expo.io/@toytonic/react-navigation-nested-tabnavigator-redux
Your Environment
The text was updated successfully, but these errors were encountered: