voyager icon indicating copy to clipboard operation
voyager copied to clipboard

TabDisposable with nested/parent navigation loses Screen state

Open creativedrewy opened this issue 10 months ago • 0 comments

When navigating from inside a TabNavigator after locating a parent/outer Navigator, the Tabs will always be disposed by TabDisposable, resulting in the screen state being lost for the tabs. This issue occurs even if the outer/parent Navigator has disposeNestedNavigators = false set.

You can utilize the attached patch file to see the bug in action:

bug_reference.patch

This video shows patch in action as well; note the list scroll position is not retained when navigated back from the "green" screen:

https://github.com/adrielcafe/voyager/assets/2018851/3f7564ed-ae87-4ba1-9ccb-1f4a6552cc97

creativedrewy avatar Apr 08 '24 19:04 creativedrewy