Skip to catalogue

79

navigation stack

Screens push and pop. Back goes to the previous screen, not to whatever the model rendered last.

What is navigation stack?

A navigation stack is an ordered history of screens. Push adds. Pop removes. Tabs are siblings, not a stack. Modals sit above. Deep links replace or reset the stack on purpose.

Why does navigation stack matter when vibe coding?

Models swap one giant component and call it navigation. The OS back button then exits the app. Name the stack, the tab, and the modal as different things.

How do you do navigation stack?

Pick a navigator. Push for drill-in. Modal for create/edit that must be dismissed. Tabs for top-level sections. Back always pops. Do not remount the world.

How do you ask a model for navigation stack?

Use a navigation stack. Push (detail). Pop on back. Tabs only for top-level sections. Present (edit) as a modal. Do not toggle screens with a boolean.

What goes wrong with navigation stack?

A stack inside every tab that forgets its state when you switch tabs. Each tab owns its stack.

adjacent