You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since the app has nested navigation throughout, most of the screens can be accessed through each of the tabs. Moreover, the same screen can easily be accessed in the same stack.
To reproduce this bug, there are 2 ways:
1
In any tab, navigate to any screen (for example: user profile)
Switch to a different tab, navigate to the same screen (for example: user profile for a different user)
Switch back the first tab and you'll notice that the correct state isn't shown
2
navigate to repository screen (as an example)
click any contributor to navigate to user profile screen
click number of repos to navigate to repository list screen
click a repository to navigate to the repository screen
go back multiple times until you reach the first repository screen you accesed -- you'll notice that the correct state isn't shown
This can be solved by essentially reloading component state whenever it comes into focus and there's an issue open for that in React Navigation.
One thing I've tried is wrapping a HOC in the meantime that exposes a isFocused prop, but I couldn't have this working without the component state being fired multiple times every time the screen was focused.
Open to suggestions of any kind!
The text was updated successfully, but these errors were encountered:
Since the app has nested navigation throughout, most of the screens can be accessed through each of the tabs. Moreover, the same screen can easily be accessed in the same stack.
To reproduce this bug, there are 2 ways:
1
2
This can be solved by essentially reloading component state whenever it comes into focus and there's an issue open for that in React Navigation.
One thing I've tried is wrapping a HOC in the meantime that exposes a
isFocused
prop, but I couldn't have this working without the component state being fired multiple times every time the screen was focused.Open to suggestions of any kind!
The text was updated successfully, but these errors were encountered: