Skip to content

After navigate from BottomTabRouter to Router, Then call goBack function in router stack state restart #33

@yenerciftci

Description

@yenerciftci

i wrote app.js that it has root Router. it has TabBarRouter,NativeStackRouter, Route

My Root Router Struct

Root Router
        ----- BottomTabBarRouter(has three tab: main,first,second)
	----- NativeStackRouter(has two page page1,page2)
	----- Route(single)(pagePush)

Firstly, i navigate to BottomTabRouter's first page(name is page1)
From First Tab of TabRouter(page1), i click to page2 from page1. i already still same Tab(page1->page2)
Then i push to pagePush from page2 that pagePush is same level with BottomTabBarRouter.
when i call router.goBack() in pagePush, i was return page1 in bottomTabRouter. But app jump from page2.
I excepted returning page2 with savedState in tabBarRouter. the function(goBack) should be back to page2 in tabBar with savedState.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions