voyager icon indicating copy to clipboard operation
voyager copied to clipboard

disposeNestedNavigators = false in TabNavigator not working

Open jessemaxh opened this issue 1 year ago • 1 comments

I initialized the TabNavigator like below, however the OnDispose still be called when switching tabs and ScreenModel has been reset when coming back to the Tab, If it's a bug or somehow I used in the wrong way

            TabNavigator(
                tab = Tab,
                disposeNestedNavigators = false
            ) 

jessemaxh avatar Sep 10 '23 15:09 jessemaxh

Ok, The problem is using BottomSheetNavigator in the Tab, it has own navigator and do not provider params to set disposeNestedNavigators=false.

jessemaxh avatar Sep 11 '23 14:09 jessemaxh