📄️ Navigation Overview
A Navigation directive is a server instruction telling the client how to update its screen stack. The server includes it in a Session response whenever it wants the client to transition to a new state.
📄️ Stack Modes
The mode field in a navigation directive specifies how the client should modify its screen stack. There are five modes.
📄️ Flows
A flow is a named group of screens that form a logical sequence — for example, CHECKOUT, DISCOVERY, or AUTH. Flows allow the server to instruct the client to remove an entire group of screens from the stack when a flow ends or restarts, without needing to know the exact stack state.
📄️ Screen Transitions
The transition field in a navigation directive controls the page animation used when the screen change occurs. It is optional — when omitted, the client uses its configured default transition.