I would like to get some opinions on how you guys go about dynamically navigating your apps based on side effects.
Example:
LoginScreen - user enters email/pw and submits. I'm using Sagas to handle my side effects so when the user is successfully authenticated from the api and my Redux store is updated accordingly, I want to advance my user to the HomeScreen.
Solution 1:
With React Navigation tied to Redux I can dispatch a navigation call from my Saga that handles my login request/response. While this seems easiest, it also seems like it could get out of hand with having navigation spread throughout components and sagas, etc.
Solution 2:
Keep all navigation calls at the component level and upon prop updates from Redux, react accordingly and navigate forward based on the user object.
Are there any patterns or best practices for handling this in React Native with Redux and middleware(Sagas or Thunks)?