react-navigation / redux-helpers

Redux middleware and utils for React Navigation
Other
296 stars 43 forks source link

NavState missing routes #105

Closed KDederichs closed 4 years ago

KDederichs commented 4 years ago

Hey,

I have a problem where the Navigation State is missing some of my routes, causing me to not be able to navigate to those using the redux action.

Navigation is set up like this

const PrimaryNav = createSwitchNavigator(
  {
    AuthLoadingScreen,
    App: AppStack,
    Auth: AuthStack,
    Intro: IntroStack,
  },
  {
    initialRouteName: 'AuthLoadingScreen',
  },
);

as you can see just a switch navigator with 3 stacks in it. But here's the problem all those stacks have only one (the first) route in them if you look at the navigation state. Navigating to the 'missing' routes using the normal navigation prop works just fine so it's not like the route isn't registered correctly, it's just not being registered into the redux state.