So I am trying to route between dynamic profile screens in React Native (Just like Twitter or Instagram)
- myapp/profile/1
- myapp/profile/3
- myapp/profile/6
- myapp/profile/4
- myapp/profile/6
- myapp/profile/3
Each screen fetches data from an API call using the ID params. But once I go back, I lose all the data for the previous screen (This is mainly because I store the state in the redux store)
Please I'd love to know the best way to manage the state of previous screens either with a state management library or with react navigation