One sort of follow-up question:
Let's say I have a bottom nav with items
A
and
B
and another screen
C
which is opened from
A
. I start on screen
A
(as a start destination), navigate to
C
and then switch to
B
using bottom navigation. Now I am at
B
but
C
should be saved in a "separate back stack" meaning that
C
should be displayed when I navigate to A, correct?
So now when I
1. navigate from
B
to
A
using bottom nav the
C
is displayed ✅
2. navigate from
B
to
A
using the system back button, the
A
is displayed ❔ Not sure if this is correct or not.
3. navigate from
B
to
A
using the system back button (I am at
A
), navigate back to
B
using bottom nav (I am at
B
) and navigate to
A
using bottom nav, I would expect to land on
A
because I just was at
A
and the state was not restored but I end up back on
C
- the back stack was restored. Is this expected behavior? Because it does not feel right.
I would either expect to
A->C
saved back stack be removed when I pop up to start destination or restored same way as with navigating.