Replace route in navigation action

General Conversations

I have a case, there are three screens:
- test1
- test2
- test3

how navigation flow I build:

test1->test->2

now test2 screen has "replace route" enabled.

test2->test3

test3->test2 & test3->test1

so in this case when I move from test2 screen to test3 screen, it should replace the route and when I come back from test3 to test2, it should redirect me to test1

but this is not working like that, also If it's not then how can I achieve that and what is the purpose of "replace route" section.

2
1 reply